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","."]
docstr: Gets one or more peer identity(s).
  
  Equivalent to
  servicer_context.auth_context().get(servicer_context.peer_identity_key())
  
  Returns:
    An iterable of the identities, or None if the call is not
    authenticated. Each identity is returned as a raw bytes type.
docstr_tok: ["Gets","one","or","more","peer","identity","(","s",")",".","Equivalent","to","servicer_context.auth_context","(",")",".get","(","servicer_context.peer_identity_key","(",")",")","Returns",":","An","iterable","of","the","identities",",","or","None","if","the","call","is","not","authenticated",".","Each","identity","is","returned","as","a","raw","bytes","type","."]
code: def peer_identities(self) -> Optional[bytes]:
      """Gets one or more peer identity(s).
  
      Equivalent to
      servicer_context.auth_context().get(servicer_context.peer_identity_key())
  
      Returns:
        An iterable of the identities, or None if the call is not
        authenticated. Each identity is returned as a raw bytes type.
      """
      return self._peer_identities
  
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 7 for calling the RayServegRPCContext obj's underlying member method code with example usage: obj.peer_identities() and returns: self