code: def assertRaisesSyntaxError(self, codestr):
      def shouldRaiseSyntaxError(s):
          compile(s, "<test>", "single")
  
      self.assertRaises(SyntaxError, shouldRaiseSyntaxError, codestr)
  
imports: import unittest
label_desc: Use image node_id 1 for calling the KeywordOnlyArgTestCase obj's underlying member method code with example usage: obj.assertRaisesSyntaxError(codestr) without return types