class_docstr: Basic Loops interface.
docstr: Connects this loop's restarting value and its children.
code: def restarting(self, restarting: bool) -> None:
      """Connects this loop's restarting value and its children."""
      self._restarting = restarting
      for loop in vars(self).values():
          if isinstance(loop, _Loop):
              loop.restarting = restarting
  
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 3 for calling the _Loop obj's underlying member method code with example usage: obj.restarting(restarting) without return types