code: def _get_child_relation(self, child_pid):
          
          return PIDRelation.query.filter_by(
              parent=self._resolved_pid,
              child=child_pid,
              relation_type=self.relation_type.id).one()
docs: Retrieve the relation between this node and a child PID.