code: def test_get_state_dict():
      """Test getting state dict."""
      cmdline_parser = CmdlineParser()
  
      cmdline_parser.parse(
          "python script.py some pos args "
          "--with args --and multiple args --plus --booleans --equal=value".split(
              " "
          )
      )
  
      assert cmdline_parser.get_state_dict() == {
          "keys": list(map(list, cmdline_parser.keys.items())),
          "arguments": list(
              map(list, cmdline_parser.arguments.items())
          ),
          "template": cmdline_parser.template,
      }
  
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 11 for calling a global function with example usage: test_get_state_dict() without return types