<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_module_dict(cls, environment, module_dict, globals):
 """Creates a template object from a module. This is used by the module loader to create a template object. .. versionadded:: 2.4 """

        return cls._from_namespace(environment, module_dict, globals)