class_docstr: Basic Loops interface.
docstr: Loads the state of this loop and all its children.
code: def load_state_dict(
      self,
      state_dict: Dict,
      prefix: str = "",
  ) -> None:
      """Loads the state of this loop and all its children."""
      self._load_from_state_dict(state_dict.copy(), prefix)
      for k, v in self.__dict__.items():
          if isinstance(v, _Loop):
              v.load_state_dict(state_dict.copy(), prefix + k + ".")
      self.restarting = True
  
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 7 for calling the _Loop obj's underlying member method code with example usage: obj.load_state_dict(state_dict, prefix) without return types