code: def load_state_dict(
      state_dict: Dict[str, Any],
      storage_reader: StorageReader,
      process_group: Optional[dist.ProcessGroup] = None,
      coordinator_rank: int = 0,
      no_dist: bool = False,
      planner: Optional[LoadPlanner] = None,
  ) -> None:
      """This method is deprecated. Please switch to 'load'."""
      warnings.warn(
          "'load_state_dict' is deprecated and will be removed in future versions. "
          "Please use 'load' instead."
      )
      with _profile():
          # TODO: test returning `load` here instead.
          return _load_state_dict(
              state_dict,
              storage_reader,
              process_group,
              coordinator_rank,
              no_dist,
              planner,
          )
  
file_path: pytorch/torch/distributed/checkpoint/state_dict_loader.py
imports: import warnings
  from typing import Any, Dict, Optional
  import torch
  import torch.distributed
  from torch.distributed.checkpoint.stateful import Stateful
  from .default_planner import DefaultLoadPlanner
  from .planner import LoadPlanner
  from .storage import StorageReader
  from .utils import _all_gather_keys, _DistWrapper, _profile
label_desc: Use image node_id 1 for calling a global function with example usage: load_state_dict(state_dict, storage_reader, process_group, coordinator_rank, no_dist, planner) and returns: _load_state_dict