class_docstr: A class used to interface with the Ray control state.
  
  Attributes:
      global_state_accessor: The client used to query gcs table from gcs
          server.
class_docstr_tok: ["A","class","used","to","interface","with","the","Ray","control","state",".","Attributes",":","global_state_accessor",":","The","client","used","to","query","gcs","table","from","gcs","server","."]
docstr: Set args for lazily initialization of the GlobalState object.
  
  It's possible that certain keys in gcs kv may not have been fully
  populated yet. In this case, we will retry this method until they have
  been populated or we exceed a timeout.
  
  Args:
      gcs_options: The client options for gcs
docstr_tok: ["Set","args","for","lazily","initialization","of","the","GlobalState","object",".","It","'s","possible","that","certain","keys","in","gcs","kv","may","not","have","been","fully","populated","yet",".","In","this","case",",","we","will","retry","this","method","until","they","have","been","populated","or","we","exceed","a","timeout",".","Args",":","gcs_options",":","The","client","options","for","gcs"]
code: def _initialize_global_state(self, gcs_options):
      """Set args for lazily initialization of the GlobalState object.
  
      It's possible that certain keys in gcs kv may not have been fully
      populated yet. In this case, we will retry this method until they have
      been populated or we exceed a timeout.
  
      Args:
          gcs_options: The client options for gcs
      """
  
      # Save args for lazy init of global state. This avoids opening extra
      # gcs connections from each worker until needed.
      self.gcs_options = gcs_options
  
imports: import json
  import logging
  from collections import defaultdict
  from typing import Set
  from google.protobuf.json_format import MessageToDict
  import ray
  from ray._private.client_mode_hook import client_mode_hook
  from ray._private.resource_spec import NODE_ID_PREFIX, HEAD_NODE_RESOURCE_NAME
  from ray._private.utils import binary_to_hex, decode, hex_to_binary, validate_actor_state_name
  from ray._raylet import GlobalStateAccessor
  from ray.core.generated import common_pb2
  from ray.core.generated import gcs_pb2
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 4 for calling the GlobalState obj's underlying member method code with example usage: obj._initialize_global_state(gcs_options) without return types