Hi,
Transforms internally does not provide such a transform but as its core is PIL image library, you can simply use functions available in PIL to create custom transforms. Here is the one I extended for Negative:

import PIL.ImageOps

def to_negative(img):
    img = PIL.ImageOps.invert(img)
    return img

class Negative(object):
    """Convert image to negative.

    Args:
        

    Returns:
        PIL Image: Negative version of the input.
         
    """
    def __init__(self):
        pass
    
    def __call__(self, img):
        """
        Args:
            img (PIL Image): Image to be converted to Negative.

        Returns:
            PIL Image: Negatived image.
        """
        return to_negative(img)

t = transforms.Compose([transforms.CenterCrop(10), 
                        Negative()])

Bests