code: def test_named_actor_workloads(ray_start_regular_with_external_redis):
      """This test cover the case to create actor while gcs is down
      and also make sure existing actor continue to work even when
      GCS is down.
      """
  
      @ray.remote
      class Counter:
          def r(self, v):
              return v
  
      c = Counter.options(name="c", lifetime="detached").remote()
      r = ray.get(c.r.remote(10))
      assert r == 10
  
      print("GCS is killed")
      ray.worker._global_node.kill_gcs_server()
  
      # detached actor should keep working
      assert ray.get(c.r.remote(10)) == 10
  
      print("Start to create a new actor")
      with pytest.raises(ray.exceptions.GetTimeoutError):
          cc = Counter.options(name="cc", lifetime="detached").remote()
  
      ray.worker._global_node.start_gcs_server()
      cc = Counter.options(name="cc", lifetime="detached").remote()
      assert ray.get(cc.r.remote(10)) == 10
  
imports: import sys
  import os
  import threading
  from time import sleep
  import pytest
  import ray
  from ray._private.utils import get_or_create_event_loop
  from ray.util.scheduling_strategies import PlacementGroupSchedulingStrategy
  import ray._private.gcs_utils
  from ray._private import ray_constants
  from ray._private.test_utils import convert_actor_state, enable_external_redis, generate_system_config_map, wait_for_condition, wait_for_pid_to_exit, run_string_as_driver
  from ray.job_submission import JobSubmissionClient, JobStatus
  from ray._raylet import GcsClient
  import psutil
label_desc: Use image node_id 14 for calling a global function with example usage: test_named_actor_workloads(ray_start_regular_with_external_redis) and returns: v