class_docstr: Simple class for commandline arguments parsing.
  
  `CmdlineParser` provides a simple interface to interpret commandline arguments
  and create new commandlines. This class exposes an interface to transform a list of strings
  representing the commandline in a dictionary of key-value conserving the order of
  the arguments, the value of named arguments, be it boolean, single-valued or multiple ones,
  as well as handling the definition of argument through the `=` sign.
  
  Attributes
  ----------
  arguments : dict
      Commandline arguments' name and value(s).
  template : list
      List of template-ready strings for formatting.
  
  See Also
  --------
  parse : Parse the list of string and defines the form of the template.
  
  Notes
  -----
  Subcommands are not supported and will be likely lead to bad interpretation of the commandline.
  Aggregation of single characters arguments is not supported yet. Ex: `-xzvf`
docstr: Reset the parser based on previous state
docstr_tok: ["Reset","the","parser","based","on","previous","state"]
code: def set_state_dict(self, state):
      """Reset the parser based on previous state"""
      if state.get("keys") is None:
          # NOTE: To support experiments prior to 0.1.9
          state["keys"] = [
              (key, self._key_to_arg(key)) for key in state["arguments"]
          ]
      self.keys = OrderedDict(state["keys"])
      self.arguments = OrderedDict(state["arguments"])
      self.template = state["template"]
      self._already_parsed = bool(self.template)
  
file_path: orion/src/orion/core/io/cmdline_parser.py
imports: import os
  from collections import OrderedDict
label_desc: Use image node_id 3 for calling the CmdlineParser obj's underlying member method code with example usage: obj.set_state_dict(state) without return types