code: def get_process_status(pid):
      try:
          process = psutil.Process(pid)
          proc_status = process.status()
          return proc_status
      except psutil.NoSuchProcess:
          logger.info(f"No process found with PID: {pid}")
          return "Completed"
  
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 1 for calling a global function with example usage: get_process_status(pid) and returns: proc_status, str