code: def dump_index(self, obj):
          
          if isinstance(obj, PIDNodeOrdered) and self._is_child(obj):
              return obj.index(self.context['pid'])
          else:
              return None
docs: Dump the index of the child in the relation.