class_docstr: Wraps an `Oracle` on a worker to send requests to the chief.
class_docstr_tok: ["Wraps","an","`","Oracle","`","on","a","worker","to","send","requests","to","the","chief","."]
code: def __init__(self, oracle):
      self._oracle = oracle
  
      ip_addr = os.environ["KERASTUNER_ORACLE_IP"]
      port = os.environ["KERASTUNER_ORACLE_PORT"]
      channel = grpc.insecure_channel(f"{ip_addr}:{port}")
      self.stub = protos.get_service_grpc().OracleStub(channel)
      self.tuner_id = os.environ["KERASTUNER_TUNER_ID"]
  
      # In multi-worker mode, only the chief of each cluster should report
      # results to the chief Oracle.
      self.multi_worker = False
      self.should_report = True
  
file_path: keras-tuner/keras_tuner/distribute/oracle_client.py
imports: import os
  import grpc
  from keras_tuner import protos
  from keras_tuner.engine import hyperparameters
  from keras_tuner.engine import trial
label_desc: Use image node_id 1 to create a new OracleClient object  with example: obj = OracleClient(oracle)