code: def fail_if_incorrect_runtime_env(expect_runtime_env: bool):
      ctx = ray.runtime_context.get_runtime_context()
      print(f"Found runtime_env={ctx.runtime_env}")
      if expect_runtime_env and ctx.runtime_env == {}:
          raise AssertionError(
              f"Expected a runtime environment but found runtime_env={ctx.runtime_env}"
          )
  
      if not expect_runtime_env and ctx.runtime_env != {}:
          raise AssertionError(
              f"Expected no runtime environment but found runtime_env={ctx.runtime_env}"
          )
  
file_path: ray/release/benchmark-worker-startup/test_single_configuration.py
imports: import argparse
  import ray
  import sys
  import time
label_desc: Use image node_id 3 for calling a global function with example usage: fail_if_incorrect_runtime_env(expect_runtime_env) without return types