code: def _exit_with_result(result: Any) -> NoReturn:
      print(json.dumps(result), flush=True)
      sys.exit()
  
imports: import json
  from pathlib import Path
  import sys
  from typing import Any, NoReturn
  import psutil
label_desc: Use image node_id 2 for calling a global function with example usage: _exit_with_result(result) without return types