code: def run(is_check_process: bool = True, open_browser: bool = True):
      pid = _get_running_process()
      if is_check_process and pid:
          raise RuntimeError(
              f"This computer is already being monitored. PID: {pid}"
          )
  
      from uuid import uuid1
  
      session_uuid = uuid1().hex
      with open(
          str(computer_singleton().config_folder / "session.txt"), "w"
      ) as f:
          f.write(session_uuid)
  
      with open(
          str(computer_singleton().config_folder / "monitor.pid"), "w"
      ) as f:
          f.write(str(os.getpid()))
  
      m = monitor.MonitorComputer(session_uuid, open_browser)
  
      m.start()
  
      # _sync_thread()
  
      i = 0
      while True:
          with monit.section("Track", is_new_line=False):
              m.track()
          time.sleep(min(60.0, max(1.0, i / 5.0)))
          i += 1
  
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 4 for calling a global function with example usage: run(is_check_process, open_browser) without return types