def METHOD_NAME(self, input_param, input_data, expected_val):
    g = AffineGrid(**input_param)
    set_track_meta(False)
    result, _ = g(**input_data)
    self.assertNotIsInstance(result, MetaTensor)
    self.assertIsInstance(result, torch.Tensor)
    set_track_meta(True)
    if "device" in input_data:
        self.assertEqual(result.device, input_data[device])
    assert_allclose(result, expected_val, type_test=False, rtol=_rtol)