def shrink(self, shrink):
if isinstance(shrink, list):<EOL><INDENT>return self._shrink_list(shrink)<EOL><DEDENT>if isinstance(shrink, dict):<EOL><INDENT>return self._shrink_dict(shrink)<EOL><DEDENT>return shrink<EOL>
Remove unnecessary parts

:param shrink: Object to shringk
:type shrink: dict | list
:return: Shrunk object
:rtype: dict | list