code: def get_entity_text_for_relation(self, node, relation):
          
  
          G = self.G
          related_node = self.get_related_node(node, relation)
          if related_node is not None:
              if not G.node[related_node]['is_event']:
                  return G.node[related_node]['text']
              else:
                  return None
          else:
              return None
docs: Looks for an edge from node to some other node, such that the edge is
          annotated with the given relation. If there exists such an edge, and
          the node at the other edge is an entity, return that entity's text.
          Otherwise, returns None.