code: def testSyntaxErrorForFunctionDefinition(self):
      self.assertRaisesSyntaxError("def f(p, *):\n  pass\n")
      self.assertRaisesSyntaxError("def f(p1, *, p1=100):\n  pass\n")
      self.assertRaisesSyntaxError("def f(p1, *k1, k1=100):\n  pass\n")
      self.assertRaisesSyntaxError(
          "def f(p1, *, k1, k1=100):\n  pass\n"
      )
      self.assertRaisesSyntaxError("def f(p1, *, **k1):\n  pass\n")
      self.assertRaisesSyntaxError("def f(p1, *, k1, **k1):\n  pass\n")
      self.assertRaisesSyntaxError(
          "def f(p1, *, None, **k1):\n  pass\n"
      )
      self.assertRaisesSyntaxError(
          "def f(p, *, (k1, k2), **kw):\n  pass\n"
      )
  
imports: import unittest
label_desc: Use image node_id 2 for calling the KeywordOnlyArgTestCase obj's underlying member method code with example usage: obj.testSyntaxErrorForFunctionDefinition() without return types