code: def lazyload(f, *args, **kwargs):
      if isinstance(f, io.BufferedIOBase):
          fp = f
      else:
          fp = open(f, "rb")
      zf = zipfile.ZipFile(fp)
      pickle_paths = [
          name for name in zf.namelist() if name.endswith(".pkl")
      ]
      invalidInputError(
          len(pickle_paths) == 1,
          "There should be only one pickle_paths found, "
          f"but get {pickle_paths}. ",
      )
      pickle_fp = zf.open(pickle_paths[0], "r")
      state_dict = _load(
          pickle_fp,
          None,
          pickle,
          pickle_file=pickle_paths[0][:-4],
          zip_file=zf,
      )
      fp.close()  # Otherwise on windows this may be marked as reading
      return state_dict
  
file_path: BigDL/python/llm/src/bigdl/llm/utils/lazy_load_torch.py
imports: import torch
  from torch.serialization import StorageType
  import pickle
  import zipfile
  import io
  from typing import Dict, IO, Any, Callable, List
  from dataclasses import dataclass
  from .common import invalidInputError
label_desc: Use image node_id 2 for calling a global function with example usage: lazyload(f) and returns: state_dict