code: def load(module: nn.Module, state_dict, prefix=""):
      args = (state_dict, prefix, {}, True, [], [], [])
      # Parameters of module and children will start with prefix.
      # We can exit early if there are none in this state_dict
      if len([key for key in state_dict if key.startswith(prefix)]) > 0:
          module._load_from_state_dict(*args)
  
      for name, child in module._modules.items():
          if child is not None:
              load(child, state_dict, prefix + name + ".")
  
file_path: BigDL/python/llm/src/bigdl/llm/transformers/utils.py
imports: import os
  from transformers.modeling_utils import _add_variant
  from ..utils.common import invalidInputError
  from typing import Union
  import torch
  from torch import nn
  import logging
label_desc: Use image node_id 3 for calling a global function with example usage: load(module, state_dict, prefix) without return types