def get_entity(self) -> "EntityWithComponents":
    """Returns the entity that this component belongs to.

    Raises:
      RuntimeError: If the entity is not set.
    """
    if self._entity is None:
      raise RuntimeError("Entity is not set.")
    return self._entity
Returns the entity that this component belongs to.

    Raises:
      RuntimeError: If the entity is not set.
    
concordia/typing/entity_component.py