code: def shrink(self, shrink):
          
          if isinstance(shrink, list):
              return self._shrink_list(shrink)
          if isinstance(shrink, dict):
              return self._shrink_dict(shrink)
          return shrink
docs: Remove unnecessary parts
  
          :param shrink: Object to shringk
          :type shrink: dict | list
          :return: Shrunk object
          :rtype: dict | list