parameters: (
        self,
        type_name: Text,
        context_name: Text,
        type_version: Optional[Text] = None)
return_statement: return response.context
docstring: Get the context of the given type and context name.
  
      The API fails if more than one contexts are found.
  
      Args:
        type_name: The context type name to look for.
        context_name: The context name to look for.
        type_version: An optional context type version. If not given, then only
          the type_name and context_name are used to look for the context with
          default version.
  
      Returns:
        The Context matching the type and context name.
        None if no matched Context found.
docstring_summary: Get the context of the given type and context name.
docstring_tokens: Get the context of the given type and context name .
function: def get_context_by_type_and_name(
        self,
        type_name: Text,
        context_name: Text,
        type_version: Optional[Text] = None) -> Optional[proto.Context]:
      """Get the context of the given type and context name.
  
      The API fails if more than one contexts are found.
  
      Args:
        type_name: The context type name to look for.
        context_name: The context name to look for.
        type_version: An optional context type version. If not given, then only
          the type_name and context_name are used to look for the context with
          default version.
  
      Returns:
        The Context matching the type and context name.
        None if no matched Context found.
      """
      request = metadata_store_service_pb2.GetContextByTypeAndNameRequest()
      request.type_name = type_name
      request.context_name = context_name
      if type_version:
        request.type_version = type_version
      response = metadata_store_service_pb2.GetContextByTypeAndNameResponse()
  
      self._call('GetContextByTypeAndName', request, response)
      if not response.HasField('context'):
        return None
      return response.context
function_tokens: def get_context_by_type_and_name ( self , type_name : Text , context_name : Text , type_version : Optional [ Text ] = None ) -> Optional [ proto . Context ] : request = metadata_store_service_pb2 . GetContextByTypeAndNameRequest ( ) request . type_name = type_name request . context_name = context_name if type_version : request . type_version = type_version response = metadata_store_service_pb2 . GetContextByTypeAndNameResponse ( ) self . _call ( 'GetContextByTypeAndName' , request , response ) if not response . HasField ( 'context' ) : return None return response . context