code: def test_ambiguities(grammar, error_match):
      with pytest.raises(ValueError, match=error_match):
          generate_grammar(grammar, tokenize.PythonTokenTypes)
  
imports: from textwrap import dedent
  import pytest
  from parso import load_grammar
  from parso import ParserSyntaxError
  from parso.pgen2 import generate_grammar
  from parso.python import tokenize
label_desc: Use image node_id 51 for calling a global function with example usage: test_ambiguities(grammar, error_match) without return types