import numpy as np
from torchvision import transforms
np.random.seed(1)

class TransformWhileSampling(object):

    def __init__(self, transform):
        self.transform = transform


    def __call__(self, sample):

        x1 = self.transform(sample)
        x2 = self.transform(sample)

        return x1, x2
[((3, 0, 3, 17), 'numpy.random.seed', 'np.random.seed', ({(3, 15, 3, 16): '(1)'}, {}), '(1)', True, 'import numpy as np\n')]