code: def test_inplace_exp_is_error_for_half(self):
      xs = torch.randn(self.b)
      xs.exp_()
      self.assertEqual(xs.type(), FLOAT)
      xs = torch.randn(self.b, dtype=torch.half)
      with self.assertRaises(NotImplementedError):
          xs.exp_()
  
file_path: apex/tests/L0/run_amp/test_promotion.py
imports: import unittest
  import itertools
  from apex import amp
  import torch
  from torch import nn
  import torch.nn.functional
  from utils import common_init, HALF, FLOAT, DTYPES
label_desc: Use image node_id 7 for calling the TestPromotion obj's underlying member method code with example usage: obj.test_inplace_exp_is_error_for_half() without return types