code: def _get_running_process():
      pid_file = computer_singleton().config_folder / "monitor.pid"
      if not pid_file.exists():
          return 0
  
      with open(str(pid_file), "r") as f:
          pid = f.read()
          try:
              pid = int(pid)
          except ValueError:
              return 0
  
          if _is_pid_running(pid):
              return pid
          else:
              return 0
  
file_path: labml/client/labml/internal/computer/monitoring_process.py
imports: import os
  import threading
  import time
  from labml import monit
  from labml.internal.computer import monitor
  from labml.internal.computer.configs import computer_singleton
  from labml.internal.computer.projects.methods import call_sync
  from labml.internal.computer.projects.polling import Polling
label_desc: Use image node_id 2 for calling a global function with example usage: _get_running_process() and returns: int, pid, int, int