Template.from_code# classmethod Template.from_code(environment, code, globals, uptodate=None)# Creates a template object from compiled code and the globals. This is used by the loaders and environment to create a template object. Parameters: environment (Environment) code (CodeType) globals (MutableMapping[str, Any]) uptodate (Callable[[], bool] | None) Return type: Template