class_docstr: A Pdb wrapper that works in a multiprocessing environment.
code: def _cmdloop(self) -> None:
      stdin_back = sys.stdin
      with _stdin_lock:
          try:
              if _stdin_fd is not None:
                  if not _stdin[0]:
                      _stdin[0] = os.fdopen(_stdin_fd)
                  sys.stdin = _stdin[0]
              self.cmdloop()
          finally:
              sys.stdin = stdin_back
  
file_path: pytorch-lightning/src/lightning/app/pdb/pdb.py
imports: import multiprocessing
  import os
  import pdb
  import sys
label_desc: Use image node_id 2 for calling the MPPdb obj's underlying member method code with example usage: obj._cmdloop() without return types