code: def save_test_results(
      final_result, default_output_file="/tmp/release_test_out.json"
  ):
      test_output_json = os.environ.get(
          "TEST_OUTPUT_JSON", default_output_file
      )
      with open(test_output_json, "wt") as f:
          json.dump(final_result, f)
  
file_path: ray/release/serve_tests/workloads/serve_test_utils.py
imports: import json
  import logging
  import os
  import random
  import ray
  import re
  import subprocess
  from collections import defaultdict
  from serve_test_cluster_utils import NUM_CPU_PER_NODE
  from subprocess import PIPE
  from typing import Dict, List, Union
label_desc: Use image node_id 9 for calling a global function with example usage: save_test_results(final_result, default_output_file) without return types