code: def test_assign_del(self):
      self._check_error("del (,)", "invalid syntax")
      self._check_error("del 1", "cannot delete literal")
      self._check_error("del (1, 2)", "cannot delete literal")
      self._check_error("del None", "cannot delete None")
      self._check_error("del *x", "cannot delete starred")
      self._check_error("del (*x)", "cannot use starred expression")
      self._check_error("del (*x,)", "cannot delete starred")
      self._check_error("del [*x,]", "cannot delete starred")
      self._check_error("del f()", "cannot delete function call")
      self._check_error("del f(a, b)", "cannot delete function call")
      self._check_error("del o.f()", "cannot delete function call")
      self._check_error("del a[0]()", "cannot delete function call")
      self._check_error("del x, f()", "cannot delete function call")
      self._check_error("del f(), x", "cannot delete function call")
      self._check_error(
          "del [a, b, ((c), (d,), e.f())]",
          "cannot delete function call",
      )
      self._check_error(
          "del (a if True else b)", "cannot delete conditional"
      )
      self._check_error("del +a", "cannot delete expression")
      self._check_error("del a, +b", "cannot delete expression")
      self._check_error("del a + b", "cannot delete expression")
      self._check_error("del (a + b, c)", "cannot delete expression")
      self._check_error("del (c[0], a + b)", "cannot delete expression")
      self._check_error("del a.b.c + 2", "cannot delete expression")
      self._check_error("del a.b.c[0] + 2", "cannot delete expression")
      self._check_error(
          "del (a, b, (c, d.e.f + 2))", "cannot delete expression"
      )
      self._check_error(
          "del [a, b, (c, d.e.f[0] + 2)]", "cannot delete expression"
      )
      self._check_error(
          "del (a := 5)", "cannot delete named expression"
      )
      # We don't have a special message for this, but make sure we don't
      # report "cannot delete name"
      self._check_error("del a += b", "invalid syntax")
  
imports: import re
  import doctest
  import textwrap
  import unittest
  from test import support
label_desc: Use image node_id 6 for calling the SyntaxTestCase obj's underlying member method code with example usage: obj.test_assign_del() without return types