hunk.code_window: @pytest.mark.parametrize(
       "ray_start_cluster_head", [
           generate_system_config_map(
               num_heartbeats_timeout=20, ping_gcs_rpc_server_max_retries=60)
       ],
       indirect=True)
   def test_create_actor_with_placement_group_after_gcs_server_restart(
           ray_start_cluster_head):
       cluster = ray_start_cluster_head
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit:             num_heartbeats_timeout=2, ping_gcs_rpc_server_max_retries=60)
  
hunk.file_path: python/ray/tests/test_placement_group.py
hunk.type: replace
file: package io.ray.api.runtimecontext;
  
  import io.ray.api.id.ActorId;
  import io.ray.api.id.JobId;
  import io.ray.api.id.TaskId;
  import java.util.List;
  
  /** A class used for getting information of Ray runtime. */
  public interface RuntimeContext {
  
    /** Get the current Job ID. */
    JobId getCurrentJobId();
  
    /** Get current task ID. */
    TaskId getCurrentTaskId();
  
    /**
     * Get the current actor ID.
     *
     * <p>Note, this can only be called in actors.
     */
    ActorId getCurrentActorId();
  
    /** Returns true if the current actor was restarted, otherwise false. */
    boolean wasCurrentActorRestarted();
  
    /**
     * Returns true if Ray is running in single-process mode, false if Ray is running in cluster mode.
     */
    boolean isSingleProcess();
  
    /** Get all node information in Ray cluster. */
    List<NodeInfo> getAllNodeInfo();
  }
  