code: def test_fork_process_in_runtime_env(ray_start_cluster):
      cluster = ray_start_cluster
      directory = os.path.dirname(os.path.realpath(__file__))
      setup_worker_path = os.path.join(
          directory, "mock_setup_worker.py"
      )
      cluster.add_node(num_cpus=1, setup_worker_path=setup_worker_path)
      job_config = ray.job_config.JobConfig(
          runtime_env={
              "env_vars": {
                  "a": "b",
              }
          }
      )
      ray.init(address=cluster.address, job_config=job_config)
  
      @ray.remote
      class Counter(object):
          def __init__(self):
              self.value = 0
              ray.put(self.value)
  
          def increment(self):
              self.value += 1
              return self.value
  
          def get_counter(self):
              return self.value
  
      a1 = Counter.options().remote()
      a1.increment.remote()
      obj_ref1 = a1.get_counter.remote()
      result = ray.get(obj_ref1)
      assert result == 1
  
file_path: ray/python/ray/tests/test_runtime_env_fork_process.py
imports: import os
  import sys
  import json
  import pytest
  import ray
  from ray._private.runtime_env.constants import RAY_JOB_CONFIG_JSON_ENV_VAR
label_desc: Use image node_id 1 for calling a global function with example usage: test_fork_process_in_runtime_env(ray_start_cluster) and returns: self, self