code: def test_working_dir_deploy_new_version(ray_start, tmp_dir):
      with open("hello", "w") as f:
          f.write("world")
  
      driver1 = """
  import ray
  from ray import serve
  
  job_config = ray.job_config.JobConfig(runtime_env={"working_dir": "."})
  ray.init(address="auto", namespace="serve", job_config=job_config)
  
  
  @serve.deployment(version="1")
  class Test:
      def __call__(self, *args):
          return open("hello").read()
  
  handle = serve.run(Test.bind())
  assert handle.remote().result() == "world"
  """
  
      run_string_as_driver(driver1)
  
      with open("hello", "w") as f:
          f.write("world2")
  
      driver2 = """
  import ray
  from ray import serve
  from ray.serve._private.constants import SERVE_DEFAULT_APP_NAME
  
  job_config = ray.job_config.JobConfig(runtime_env={"working_dir": "."})
  ray.init(address="auto", namespace="serve", job_config=job_config)
  
  
  @serve.deployment(version="2")
  class Test:
      def __call__(self, *args):
          return open("hello").read()
  
  handle = serve.run(Test.bind())
  assert handle.remote().result() == "world2"
  serve.delete(SERVE_DEFAULT_APP_NAME)
  """
  
      run_string_as_driver(driver2)
  
imports: import sys
  import pytest
  from ray._private.test_utils import run_string_as_driver
label_desc: Use image node_id 1 for calling a global function with example usage: test_working_dir_deploy_new_version(ray_start, tmp_dir) without return types