code: def test_nep50_exceptions(self, example):
      old, new = examples[example]
  
      if new == Exception:
          with assert_raises(OverflowError):
              eval(example)
  
      else:
          result = eval(example)
  
          if new is unchanged:
              new = old
  
          assert_allclose(result, new, atol=1e-16)
          assert result.dtype == new.dtype
  
file_path: pytorch/test/torch_np/test_nep50_examples.py
imports: import itertools
  from unittest import skipIf, SkipTest
  import torch._numpy
  from torch._numpy import array, bool_, complex128, complex64, float32, float64, inf, int16, int32, int64, uint8
  from torch._numpy.testing import assert_allclose
  from torch.testing._internal.common_utils import instantiate_parametrized_tests, parametrize, run_tests, TestCase
  from pytest import raises
label_desc: Use image node_id 1 for calling the TestNEP50Table obj's underlying member method code with example usage: obj.test_nep50_exceptions(example) without return types