def METHOD_NAME(self):
    for opt in ["amp_native", "half"]:
        AutoAccelerateContext.counter += 1
        strategy = Strategy([(opt, None)])
        record_user_defined_half_precision_dtype(strategy)
        self.assertEqual(AutoAccelerateContext.half_precision_dtype[AutoAccelerateContext.counter], torch.float16)
    AutoAccelerateContext.reset()