code: def main(pid=None, verbose=False):
      lsof_output = run_lsof_for_pid(pid) if pid else run_lsof()
      files_by_pid = parse_lsof_output(lsof_output, verbose)
  
      for pid, files in files_by_pid.items():
          print(f"PID {pid} open files:")
          for file in files:
              print(
                  f"  {file['File Path']} ({file['FD Type']} - {file['FD Info']})"
              )
  
imports: import argparse
  from collections import defaultdict
  import subprocess
label_desc: Use image node_id 4 for calling a global function with example usage: main(pid, verbose) without return types