code: def test_runtime_env(shutdown_only):
      ray.init(
          job_config=ray.job_config.JobConfig(
              runtime_env={"env_vars": {"foo1": "bar1", "foo2": "bar2"}}
          )
      )
  
      @ray.remote
      def get_env(key):
          return os.environ.get(key)
  
      assert ray.get(get_env.remote("foo1")) == "bar1"
      assert ray.get(get_env.remote("foo2")) == "bar2"
  
file_path: ray/python/ray/tests/test_multi_tenancy.py
imports: import os
  import sys
  import time
  import pytest
  import numpy
  import ray
  from ray.core.generated import common_pb2
  from ray.core.generated import node_manager_pb2, node_manager_pb2_grpc
  from ray._private.test_utils import wait_for_condition, run_string_as_driver, run_string_as_driver_nonblocking
  from ray._private.utils import init_grpc_channel
label_desc: Use image node_id 4 for calling a global function with example usage: test_runtime_env(shutdown_only) and returns: os