code: def test_undefined_parser():
      """Test that creation of new resolution class make parser creation crash"""
      # It works
      get_branching_args_group(argparse.ArgumentParser())
  
      class DummyResolution(Resolution):
          ARGUMENT = "--dummy"
  
      # It doesn't
      with pytest.raises(AssertionError) as exc:
          get_branching_args_group(argparse.ArgumentParser())
      assert "A resolution with metavar 'dummy'" in str(exc.value)
  
imports: import argparse
  import pytest
  from orion.core.cli.evc import get_branching_args_group
  from orion.core.evc.conflicts import Resolution
label_desc: Use image node_id 2 for calling a global function with example usage: test_undefined_parser() without return types