original_docstring: Returns the entity group key for the given reference.
docstring: Returns the entity group key for the given reference.
docstring_tokens: Returns the entity group key for the given reference .
code: def _GetEntityGroup(ref):
    """Returns the entity group key for the given reference."""
    entity_group = entity_pb.Reference()
    entity_group.CopyFrom(ref)
    assert (entity_group.path().element_list()[0].has_id() or
            entity_group.path().element_list()[0].has_name())
    del entity_group.path().element_list()[1:]
    return entity_group
code_tokens: def _GetEntityGroup ( ref ) : entity_group = entity_pb . Reference ( ) entity_group . CopyFrom ( ref ) assert ( entity_group . path ( ) . element_list ( ) [ 0 ] . has_id ( ) or entity_group . path ( ) . element_list ( ) [ 0 ] . has_name ( ) ) del entity_group . path ( ) . element_list ( ) [ 1 : ] return entity_group
short_docstring: Returns the entity group key for the given reference.
short_docstring_tokens: Returns the entity group key for the given reference .
comment: """Returns the entity group key for the given reference."""