code: def test(
      test_path,
      test_args,
      call_interval_s,
  ):
      # Set up state API calling methods
      def not_none(res):
          return res is not None
  
      apis = [
          StateAPICallSpec(
              list_nodes, not_none, {"limit": STATE_LIST_LIMIT}
          ),
          StateAPICallSpec(
              list_objects, not_none, {"limit": STATE_LIST_LIMIT}
          ),
          StateAPICallSpec(
              list_tasks, not_none, {"limit": STATE_LIST_LIMIT}
          ),
          StateAPICallSpec(
              list_actors, not_none, {"limit": STATE_LIST_LIMIT}
          ),
          StateAPICallSpec(summarize_tasks, not_none),
          StateAPICallSpec(summarize_actors, not_none),
          StateAPICallSpec(summarize_objects, not_none),
      ]
  
      # Set up benchmark test by downloading the release test file directly
      test_name = download_release_test(test_path)
      assert (
          test_name is not None
      ), f"Failed to retrieve release test: {test_path}"
  
      ray.init()
      results = run_test_with_state_api(
          test_name,
          test_args.split(),
          apis,
          call_interval_s=call_interval_s,
      )
  
      if "TEST_OUTPUT_JSON" in os.environ:
          # This will overwrite all other release tests result
          out_file = open(os.environ["TEST_OUTPUT_JSON"], "w")
          json.dump(results, out_file)
      print(json.dumps(results, indent=2))
  
      assert cleanup_release_test(test_name)
  
file_path: ray/release/nightly_tests/stress_tests/test_state_api_with_other_tests.py
imports: import time
  from typing import Dict, List
  import click
  import json
  import os
  import ray
  from ray.util.state import list_actors, list_nodes, list_objects, list_tasks, summarize_actors, summarize_objects, summarize_tasks
  import ray._private.test_utils
  from ray._private.state_api_test_utils import StateAPICallSpec, periodic_invoke_state_apis_with_actor, STATE_LIST_LIMIT
label_desc: Use image node_id 6 for calling a global function with example usage: test(test_path, test_args, call_interval_s) and returns: unknown