code: def find_pid_by_port(port):
      """Find PID by port number."""
      try:
          result = subprocess.run(
              ["lsof", "-i", f":{port}", "-t"],
              capture_output=True,
              text=True,
              check=True,
          )
          pids = result.stdout.strip().split("\n")
          return [int(pid) for pid in pids if pid.isdigit()]
      except subprocess.CalledProcessError:
          return []
  
imports: import json
  import os
  import signal
  import socket
  import subprocess
  import psutil
  import requests
  from autotrain import config, logger
  from autotrain.commands import launch_command
  from autotrain.trainers.clm.params import LLMTrainingParams
  from autotrain.trainers.dreambooth.params import DreamBoothTrainingParams
  from autotrain.trainers.generic.params import GenericParams
  from autotrain.trainers.image_classification.params import ImageClassificationParams
  from autotrain.trainers.seq2seq.params import Seq2SeqParams
  from autotrain.trainers.tabular.params import TabularParams
  from autotrain.trainers.text_classification.params import TextClassificationParams
label_desc: Use image node_id 2 for calling a global function with example usage: find_pid_by_port(port) and returns: unknown, list