<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def loads(s: str, load_module: types.ModuleType, **kwargs):
 """ Convert a JSON string into a JSGObject :param s: string representation of JSON document :param load_module: module that contains declarations for types :param kwargs: arguments see: json.load for details :return: JSGObject representing the json string """

    return json.loads(s, object_hook=lambda pairs: loads_loader(load_module, pairs), **kwargs)