code: def test_format(to_format):
      """Test that the format method assigns the correc values"""
      cmdline_parser = CmdlineParser()
  
      cmdline_parser.parse(to_format.split(" "))
  
      keys, arguments = cmdline_parser._parse_arguments(
          to_format.split(" ")
      )
  
      formatted = cmdline_parser.format(arguments)
  
      assert formatted == to_format.split(" ")
  
file_path: orion/tests/unittests/core/io/test_cmdline_parser.py
imports: import os
  from collections import OrderedDict
  import pytest
  from orion.core.io.cmdline_parser import CmdlineParser
label_desc: Use image node_id 8 for calling a global function with example usage: test_format(to_format) without return types