def METHOD_NAME(self):
    import torch
    # given
    image_tensor = torch.rand(200, 300, 3)
    expected_array = image_tensor.numpy() * 255
    expected_image = Image.fromarray(expected_array.astype(numpy.uint8))
    # expect
    self.assertEqual(get_image_content(image_tensor), _get_pil_image_data(expected_image))