code: def getattribute_from_module(module, attr):
      if attr is None:
          return None
      if isinstance(attr, tuple):
          return tuple(
              getattribute_from_module(module, a) for a in attr
          )
      if hasattr(module, attr):
          return getattr(module, attr)
      # Some of the mappings have entries model_type -> object of another model type. In that case we try to grab the
      # object at the top level.
      transformers_module = importlib.import_module("transformers")
  
      if module != transformers_module:
          try:
              return getattribute_from_module(transformers_module, attr)
          except ValueError:
              raise ValueError(
                  f"Could not find {attr} neither in {module} nor in {transformers_module}!"
              )
      else:
          raise ValueError(
              f"Could not find {attr} in {transformers_module}!"
          )
  
imports: import importlib
  from collections import OrderedDict
  from ...configuration_utils import PretrainedConfig
  from ...dynamic_module_utils import get_class_from_dynamic_module
  from ...utils import copy_func, logging
  from .configuration_auto import AutoConfig, model_type_to_module_name, replace_list_option_in_docstrings
label_desc: Use image node_id 5 for calling a global function with example usage: getattribute_from_module(module, attr) and returns: None, tuple, getattr, getattribute_from_module