code: def run_lsof_for_pid(pid):
      """Run the lsof command for a specific PID and return its output."""
      try:
          process = subprocess.Popen(
              ["lsof", "-p", str(pid)],
              stdout=subprocess.PIPE,
              text=True,
          )
          output, _ = process.communicate()
          return output
      except Exception as e:
          print(f"Error running lsof for PID {pid}: {e}")
          return ""
  
imports: import argparse
  from collections import defaultdict
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: run_lsof_for_pid(pid) and returns: output, str