def _get_generatable_entity_ids(
      self,
      target,
      evidence,
  ):
    """Gets set of generatable entity ids."""
    generatable_entity_ids = set()
    for entity in target["added_entities"]:
      if any(entity["id"] in e.entity_ids for e in evidence):
        generatable_entity_ids.add(entity["id"])
    return generatable_entity_ids
Gets set of generatable entity ids.
language/fruit/rendering_utils.py