class_docstr: Tests for TorchScript support of Python builtin functions.
code: def test_del(self):
      def fn(x: List[int]) -> List[int]:
          a = x * 2
          del a
          return x
  
      self.checkScript(fn, ([1, 2, 3],))
  
      with self.assertRaisesRegexWithHighlight(
          RuntimeError, "undefined value", "a"
      ):
  
          @torch.jit.script
          def fn(x):
              a = x**2
              del a
              return a  # noqa: F821
  
      with self.assertRaisesRegexWithHighlight(
          RuntimeError, "undefined value", "a"
      ):
  
          @torch.jit.script
          def fn(x):
              a = x**2
              if a:
                  del a
              return a
  
      with self.assertRaisesRegexWithHighlight(
          RuntimeError, "undefined value", "b"
      ):
  
          @torch.jit.script
          def fn(x):
              a = x**2
              del b  # noqa: F821
              return a
  
imports: import os
  import sys
  import inspect
  import unittest
  from typing import Dict, List
  import torch
  from torch.testing import FileCheck
  from torch.testing._internal.jit_utils import JitTestCase, RUN_CUDA
label_desc: Use image node_id 3 for calling the TestBuiltins obj's underlying member method code with example usage: obj.test_del() and returns: x, a, a, a