code: def test_parse_from_args_and_config_yaml(
      parser: OrionCmdlineParser,
      commandline: List[str],
      yaml_config: List[str],
      weird_argument: WeirdArgument,
  ):
      """Parse both from commandline and config file."""
      cmd_args = yaml_config
      cmd_args.extend(commandline)
  
      parser.parse(cmd_args)
      config = parser.priors
  
      assert len(config) == 10
      assert "/lr" in config
      assert "/prior" in config
      assert "/layers/1/width" in config
      assert "/layers/1/type" in config
      assert "/layers/2/type" in config
      assert "/training/lr0" in config
      assert "/training/mbs" in config
      assert "/something-same" in config
      assert "/a.b" in config
  
      assert f"/{weird_argument.name}" in config
  
      template = parser.parser.template
      assert template == [
          "--config",
          "{config}",
          "--seed",
          "{seed}",
          "--lr",
          "{lr}",
          "--non-prior",
          "{non-prior}",
          "--prior",
          "{prior}",
          "--a.b",
          "{a.b}",
          f"--{weird_argument.name}",
          f"{{{weird_argument.name}}}",
      ]
  
imports: import os
  from pathlib import Path
  from typing import Any, List, NamedTuple, Optional, Tuple
  import pytest
  from orion.core.io.convert import JSONConverter
  from orion.core.io.orion_cmdline_parser import OrionCmdlineParser
  from orion.core.worker.experiment import Experiment
  from orion.core.worker.trial import Trial
label_desc: Use image node_id 14 for calling a global function with example usage: test_parse_from_args_and_config_yaml(parser, commandline, yaml_config, weird_argument) without return types