def METHOD_NAME(self, np_type, pt_type):
    in_image = np.ones(13, dtype=np_type)  # choose a prime size so as to be indivisible by the size of any dtype
    converted_im, orig_type, orig_device = convert_data_type(in_image, torch.Tensor)
    self.assertEqual(converted_im.dtype, pt_type)