class_docstr: Python interface commandline parser
  
  The `OrionCmdlineParser` is used as a way to obtain the parsing process of Orion
  through a Python interface. It provides different dictionaries containing information
  for different parts of the parsing process. It also exposes methods to retrieve the
  command line with formatted values for parameters.
  
  Parameters
  ----------
  config_prefix : str, optional
      Prefix for the configuration file used by the parser to identify it.
  allow_non_existing_files : bool, optional
      If True, will parse all commandline but ignore non existing user script or configuration
      files if non-existent. Default is False
  
  Attributes
  ----------
  parser : CmdlineParser
      Parser that will be used to parse the commandline.
  cmd_priors : OrderedDict
      An OrderedDict containing only the priors inside the commandline.
  file_priors : OrderedDict
      An OrderedDict obtained by parsing the config file, if one was found.
  priors : OrderedDict
      An OrderedDict obtained from merging `cmd_priors` and `file_priors`.
  user_script : str
      File path of the script executed (inferred from parsed commandline)
  config_prefix : str
      Prefix for the configuration file used by the parser to identify it.
  file_config_path : str
      If a config file was found, this file contain the path. `None` otherwise.
  converter : BaseConverter
      A BaseConverter object to parse the config file.
  
  Methods
  -------
  parse(commandline)
      Parses the commandline and populate the OrderedDict
  format(trial, experiment) : str
      Return the commandline with replaced values for priors and attributes
docstr: Insert parameters if it has a prior.
  
  Match the regex for priors with the `value` argument to extract the information
  regarding the prior. If it possesses such information, insert the parameters inside
  the `cmd_priors` attribute.
  
  Parameters
  ----------
  key: str
      Current key for the element inside the `OrderedDict` of commandline arguments.
  Will correspond to `orion` if it is related to priors.
  
  value:
      Possible parameter to parse through the regex.
  
  insert_into: OrderedDict
      Collections into which to insert the current prior.
docstr_tok: ["Insert","parameters","if","it","has","a","prior",".","Match","the","regex","for","priors","with","the","`","value","`","argument","to","extract","the","information","regarding","the","prior",".","If","it","possesses","such","information",",","insert","the","parameters","inside","the","`","cmd_priors","`","attribute",".","Parameters","--","--","--","--","--","key",":","str","Current","key","for","the","element","inside","the","`","OrderedDict","`","of","commandline","arguments",".","Will","correspond","to","`","orion","`","if","it","is","related","to","priors",".","value",":","Possible","parameter","to","parse","through","the","regex",".","insert_into",":","OrderedDict","Collections","into","which","to","insert","the","current","prior","."]
code: def _extract_prior(self, key, value, insert_into):
      """Insert parameters if it has a prior.
  
      Match the regex for priors with the `value` argument to extract the information
      regarding the prior. If it possesses such information, insert the parameters inside
      the `cmd_priors` attribute.
  
      Parameters
      ----------
      key: str
          Current key for the element inside the `OrderedDict` of commandline arguments.
      Will correspond to `orion` if it is related to priors.
  
      value:
          Possible parameter to parse through the regex.
  
      insert_into: OrderedDict
          Collections into which to insert the current prior.
  
      """
      if not isinstance(value, str):
          return
  
      prior = self.prior_regex.match(value)
      if prior is None:
          return
  
      # Skip first group because it will always correspond to `orion`.
      _, expression = prior.groups(2)
  
      name = key
      if not name.startswith("/"):
          name = "/" + name
  
      insert_into[name] = expression
  
imports: import copy
  import errno
  import logging
  import os
  import re
  import shutil
  from collections import OrderedDict, defaultdict
  from orion.core.io.cmdline_parser import CmdlineParser
  from orion.core.io.convert import infer_converter_from_file_type
  from orion.core.utils.flatten import flatten
label_desc: Use image node_id 14 for calling the OrionCmdlineParser obj's underlying member method code with example usage: obj._extract_prior(key, value, insert_into) without return types