keras/src/trainers/data_adapters/array_slicing.py/Sliceable/convert_to_numpy
class Sliceable:    def convert_to_numpy(cls, x):
        """Convert a tensor to a NumPy array.

        Only called after slicing using `__getitem__`.

        Args:
            x: the tensor to convert.
        Returns: the converted tensor.
        """
        return x