code: def _initialize_override(module, override, cfg):
      if not isinstance(override, (dict, list)):
          raise TypeError(
              f"override must be a dict or a list of dict, \
                  but got {type(override)}"
          )
  
      override = [override] if isinstance(override, dict) else override
  
      for override_ in override:
          cp_override = copy.deepcopy(override_)
          name = cp_override.pop("name", None)
          if name is None:
              raise ValueError(
                  '`override` must contain the key "name",'
                  f"but got {cp_override}"
              )
          # if override only has name key, it means use args in init_cfg
          if not cp_override:
              cp_override.update(cfg)
          # if override has name key and other args except type key, it will
          # raise error
          elif "type" not in cp_override.keys():
              raise ValueError(
                  f'`override` need "type" key, but got {cp_override}'
              )
  
          if hasattr(module, name):
              _initialize(
                  getattr(module, name), cp_override, wholemodule=True
              )
          else:
              raise RuntimeError(
                  f"module did not have attribute {name}, "
                  f"but init_cfg is {cp_override}."
              )
  
imports: import copy
  import math
  import warnings
  import numpy
  import torch
  import torch.nn
  from torch import Tensor
  from annotator.uniformer.mmcv.utils import Registry, build_from_cfg, get_logger, print_log
label_desc: Use image node_id 12 for calling a global function with example usage: _initialize_override(module, override, cfg) without return types