code: def main():
      if len(sys.argv) != 2:
          print("usage: python -m test.libregrtest.worker JSON")
          sys.exit(1)
      worker_json = sys.argv[1]
  
      tmp_dir = get_temp_dir()
      work_dir = get_work_dir(tmp_dir, worker=True)
  
      with exit_timeout():
          with os_helper.temp_cwd(work_dir, quiet=True):
              worker_process(worker_json)
  
file_path: cpython/Lib/test/libregrtest/worker.py
imports: import subprocess
  import sys
  import os
  from typing import Any, NoReturn
  from test import support
  from test.support import os_helper, Py_DEBUG
  from .setup import setup_process, setup_test_dir
  from .runtests import WorkerRunTests, JsonFile, JsonFileType
  from .single import run_single_test
  from .utils import StrPath, StrJSON, TestFilter, get_temp_dir, get_work_dir, exit_timeout
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types