code: def test_runtime_context(start_cluster, working_dir):
      """Tests that the working_dir is propagated in the runtime_context."""
      cluster, address = start_cluster
      ray.init(runtime_env={"working_dir": working_dir})
  
      def check():
          wd = ray.get_runtime_context().runtime_env["working_dir"]
          if working_dir in REMOTE_URIS:
              assert wd == working_dir
          else:
              assert wd.startswith("gcs://_ray_pkg_")
  
      check()
  
      @ray.remote
      def task():
          check()
  
      ray.get(task.remote())
  
      @ray.remote
      class Actor:
          def check(self):
              check()
  
      a = Actor.remote()
      ray.get(a.check.remote())
  
file_path: ray/python/ray/tests/test_runtime_env_working_dir_remote_uri.py
imports: from pathlib import Path
  import sys
  import pytest
  from pytest_lazyfixture import lazy_fixture
  import ray
label_desc: Use image node_id 3 for calling a global function with example usage: test_runtime_context(start_cluster, working_dir) without return types