def METHOD_NAME(self, codim):
    """`retval[e]` is the index of the `e`-th codim-`codim` entity in the parent grid."""
    assert 0 <= codim <= self.dim, 'Invalid codimension'
    return self.__parent_indices[codim]