class_docstr: Context manager to set and get gRPC context.
  
  This class implements most of the methods from ServicerContext
  (see: https://grpc.github.io/grpc/python/grpc.html#grpc.ServicerContext). It's
  serializable and can be passed with the request to be used on the deployment.
class_docstr_tok: ["Context","manager","to","set","and","get","gRPC","context",".","This","class","implements","most","of","the","methods","from","ServicerContext","(","see",":","https",":","\/\/grpc.github.io\/grpc\/python\/grpc.html","#","grpc.ServicerContext",")",".","It's","serializable","and","can","be","passed","with","the","request","to","be","used","on","the","deployment","."]
code: def __init__(
      self, grpc_context: grpc._cython.cygrpc._ServicerContext
  ):
      self._auth_context = grpc_context.auth_context()
      self._code = grpc_context.code()
      self._details = grpc_context.details()
      self._invocation_metadata = [
          (key, value)
          for key, value in grpc_context.invocation_metadata()
      ]
      self._peer = grpc_context.peer()
      self._peer_identities = grpc_context.peer_identities()
      self._peer_identity_key = grpc_context.peer_identity_key()
      self._trailing_metadata = [
          (key, value)
          for key, value in grpc_context.trailing_metadata()
      ]
      self._compression = None
  
file_path: ray/python/ray/serve/grpc_util.py
imports: from typing import Any, Dict, List, Optional, Tuple
  import grpc
  from ray.util.annotations import PublicAPI
label_desc: Use image node_id 1 to create a new RayServegRPCContext object  with example: obj = RayServegRPCContext(grpc_context)