def METHOD_NAME(self, dtype, device):
    x = torch.rand((100, 100), device=device) * FP8_MAX[dtype]
    x = torch.cat((x, -x))
    x8 = x.to(dtype)
    x8_simulated = simulateFp8Precision(x, dtype)
    self.assertEqual(x8_simulated, x8.float())