def loads(self, config, content, prefer=None):
loader = self._prefer_package(prefer)<EOL>loads_hook_name = f"<STR_LIT>"<EOL>loads_hook = getattr(self, loads_hook_name, None)<EOL>if not callable(loads_hook):<EOL><INDENT>raise ValueError(<EOL>f"<STR_LIT>"<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>return loads_hook(self.handler, config, content)<EOL>
An abstract loads method which loads an instance from some content.

        :param class config: The config class to load into
        :param str content: The content to load from
        :param str prefer: The preferred serialization module name
        :raises ValueError: If load handler does not provided handler method
        :return: A dictionary converted from the given content
        :rtype: dict