code: def test_forced(self) -> None:
      grammar_source = """
          start: NAME &&':' | NAME
          """
      test_source = """
          self.assertEqual(parse.parse_string("number :", mode=0), None)
          with self.assertRaises(SyntaxError) as e:
              parse.parse_string("a", mode=0)
          self.assertIn("expected ':'", str(e.exception))
          """
      self.run_test(grammar_source, test_source)
  
imports: import contextlib
  import subprocess
  import sysconfig
  import textwrap
  import unittest
  import os
  import shutil
  import tempfile
  from pathlib import Path
  from test import test_tools
  from test import support
  from test.support import os_helper, import_helper
  from test.support.script_helper import assert_python_ok
label_desc: Use image node_id 29 for calling the TestCParser obj's underlying member method code with example usage: obj.test_forced() without return types