code: def test_common_and_user_group_arguments(orionstate, monkeypatch):
      """Test the parsing of the command and user groups"""
      monkeypatch.chdir(os.path.dirname(os.path.abspath(__file__)))
      parser = _create_parser(False)
      args_list = [
          "-n",
          "test",
          "-c",
          "./orion_config_random.yaml",
          "./black_box.py",
          "-x~normal(50,50)",
      ]
  
      cli.get_basic_args_group(parser)
      cli.get_user_args_group(parser)
      args = vars(parser.parse_args(args_list))
      assert args["name"] == "test"
      assert args["config"].name == "./orion_config_random.yaml"
      assert len(args["user_args"]) == 2
      assert args["user_args"] == ["./black_box.py", "-x~normal(50,50)"]
  
imports: import argparse
  import os
  import orion.core.cli.base
label_desc: Use image node_id 4 for calling a global function with example usage: test_common_and_user_group_arguments(orionstate, monkeypatch) without return types