class_docstr: This loader loads templates from precompiled templates.
  
  Example usage:
  
  >>> loader = ChoiceLoader([
  ...     ModuleLoader('/path/to/compiled/templates'),
  ...     FileSystemLoader('/path/to/templates')
  ... ])
  
  Templates can be precompiled with :meth:`Environment.compile_templates`.
class_docstr_tok: ["This","loader","loads","templates","from","precompiled","templates",".","Example","usage",":",">",">",">","loader","=","ChoiceLoader","(","[","...","ModuleLoader","(","'\/path\/to\/compiled\/templates","'",")",",","...","FileSystemLoader","(","'\/path\/to\/templates","'",")","...","]",")","Templates","can","be","precompiled","with",":","meth",":","`","Environment.compile_templates","`","."]
code: def load(
      self,
      environment: "Environment",
      name: str,
      globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
  ) -> "Template":
      key = self.get_template_key(name)
      module = f"{self.package_name}.{key}"
      mod = getattr(self.module, module, None)
  
      if mod is None:
          try:
              mod = __import__(module, None, None, ["root"])
          except ImportError as e:
              raise TemplateNotFound(name) from e
  
          # remove the entry from sys.modules, we only want the attribute
          # on the module object we have stored on the loader.
          sys.modules.pop(module, None)
  
      if globals is None:
          globals = {}
  
      return environment.template_class.from_module_dict(
          environment, mod.__dict__, globals
      )
  
imports: import importlib.util
  import os
  import posixpath
  import sys
  import pkgutil
  import typing
  import weakref
  import zipimport
  from collections import abc
  from hashlib import sha1
  from importlib import import_module
  from types import ModuleType
  from .exceptions import TemplateNotFound
  from .utils import internalcode
  from .utils import open_if_exists
  import __res
label_desc: Use image node_id 4 for calling the ModuleLoader obj's underlying member method code with example usage: obj.load(environment, name, globals) and returns: environment