def METHOD_NAME(
    self, x: "torch.Tensor", y: Optional[Union["torch.Tensor", List[Dict[str, "torch.Tensor"]]]], **kwargs
) -> Tuple["torch.Tensor", Optional[Union["torch.Tensor", List[Dict[str, "torch.Tensor"]]]]]:
    """
    Transformation of an image with randomly sampled brightness.
    :param x: Input samples.
    :param y: Label of the samples `x`.
    :return: Transformed samples and labels.
    """
    import torch
    delta_i = np.random.uniform(low=self.delta_range[0], high=self.delta_range[1])
    return torch.clamp(x + delta_i, min=self.clip_values[0], max=self.clip_values[1]), y