code: def test_environment_variables_actor(ray_start_regular):
      @ray.remote
      class EnvGetter:
          def get(self, key):
              return os.environ.get(key)
  
      a = EnvGetter.options(
          runtime_env={
              "env_vars": {
                  "a": "b",
                  "c": "d",
              }
          }
      ).remote()
  
      assert ray.get(a.get.remote("a")) == "b"
      assert ray.get(a.get.remote("c")) == "d"
  
file_path: ray/python/ray/tests/test_runtime_env_env_vars.py
imports: import os
  import sys
  import pytest
  import ray
label_desc: Use image node_id 2 for calling a global function with example usage: test_environment_variables_actor(ray_start_regular) and returns: os