class_docstr: Basic Loops interface.
code: def _load_from_state_dict(
      self, state_dict: Dict, prefix: str
  ) -> None:
      for k, v in self.__dict__.items():
          key = prefix + k
          if key not in state_dict:
              # compatibility with old checkpoints
              continue
          if isinstance(v, _BaseProgress):
              v.load_state_dict(state_dict[key])
      if (
          prefix + "state_dict" in state_dict
      ):  # compatibility with old checkpoints
          self.on_load_checkpoint(state_dict[prefix + "state_dict"])
  
file_path: pytorch-lightning/src/lightning/pytorch/loops/loop.py
imports: from typing import Dict, Optional
  import lightning.pytorch
  from lightning.pytorch.loops.progress import _BaseProgress
label_desc: Use image node_id 8 for calling the _Loop obj's underlying member method code with example usage: obj._load_from_state_dict(state_dict, prefix) without return types