def METHOD_NAME(self):
    # No-op, called by pytorch integration
    if isinstance(self.data, np.ndarray):
        return Polygons(self.data.METHOD_NAME(), self.dtype)
    return Polygons(
        [p.METHOD_NAME() if isinstance(p, np.ndarray) else p for p in self.data],
        self.dtype,
    )