def __call__(self, img):
return F.to_grayscale(img, num_output_channels=self.num_output_channels)<EOL>
Args:
    img (PIL Image): Image to be converted to grayscale.

Returns:
    PIL Image: Randomly grayscaled image.