def METHOD_NAME(self, relabeling):
    """Sets new relabeling vector. It should have a len(relabling) == max(your data)+1
    and give, for each possible data value x, the relabling as relabeling[x]."""
    assert relabeling.dtype == self._array.dtype, "relabeling.dtype=%r != self._array.dtype=%r" % (
        relabeling.dtype,
        self._array.dtype,
    )
    self._relabeling = relabeling
    self.setDirty(5 * (slice(None),))