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: Parse actor table data.
  
  Returns:
      Information from actor table.
docstr_tok: ["Parse","actor","table","data",".","Returns",":","Information","from","actor","table","."]
code: def _gen_actor_info(self, actor_table_data):
      """Parse actor table data.
  
      Returns:
          Information from actor table.
      """
      actor_info = {
          "ActorID": binary_to_hex(actor_table_data.actor_id),
          "ActorClassName": actor_table_data.class_name,
          "IsDetached": actor_table_data.is_detached,
          "Name": actor_table_data.name,
          "JobID": binary_to_hex(actor_table_data.job_id),
          "Address": {
              "IPAddress": actor_table_data.address.ip_address,
              "Port": actor_table_data.address.port,
              "NodeID": binary_to_hex(
                  actor_table_data.address.raylet_id
              ),
          },
          "OwnerAddress": {
              "IPAddress": actor_table_data.owner_address.ip_address,
              "Port": actor_table_data.owner_address.port,
              "NodeID": binary_to_hex(
                  actor_table_data.owner_address.raylet_id
              ),
          },
          "State": gcs_pb2.ActorTableData.ActorState.DESCRIPTOR.values_by_number[
              actor_table_data.state
          ].name,
          "NumRestarts": actor_table_data.num_restarts,
          "Timestamp": actor_table_data.timestamp,
          "StartTime": actor_table_data.start_time,
          "EndTime": actor_table_data.end_time,
          "DeathCause": actor_table_data.death_cause,
          "Pid": actor_table_data.pid,
      }
      return actor_info
  
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 7 for calling the GlobalState obj's underlying member method code with example usage: obj._gen_actor_info(actor_table_data) and returns: actor_info