class_docstr: Build a new configuration for the experiment based on parent config.
  
  Parameters
  ----------
  conflicts: Conflicts
      Object representing a group of conflicts
  manual_resolution: bool, optional
      Starts the prompt to resolve manually the conflicts. Use system's default if not provided.
  branch_from: str, optional
      Name of the experiment to branch from.
  algorithm_change: bool, optional
      Whether to automatically solve the algorithm conflict (change of algo config).
      Defaults to True.
  code_change_type: str, optional
      How to resolve code change automatically. Must be one of 'noeffect', 'unsure' or
      'break'.  Defaults to 'break'.
  cli_change_type: str, optional
      How to resolve cli change automatically. Must be one of 'noeffect', 'unsure' or 'break'.
      Defaults to 'break'.
  config_change_type: str, optional
      How to resolve config change automatically. Must be one of 'noeffect', 'unsure' or
      'break'.  Defaults to 'break'.
docstr: Rename dimension `old_name` to `new_name`
  
  Only dimensions with conflict type `MissingDimensionConflict` may be renamed,
  and it can only be renamed to dimensions with conflict type `NewDimensionConflict`.
  
  Parameters
  ----------
  old_name: str
      Name of the dimension to rename
  new_name: str
      Name of the target dimension
  
  Raises
  ------
  ValueError
      If name is not present in non-resolved conflicts.
  
  Notes
  -----
  This may create a new conflict if the target dimension has a different prior.
docstr_tok: ["Rename","dimension","`","old_name","`","to","`","new_name","`","Only","dimensions","with","conflict","type","`","MissingDimensionConflict","`","may","be","renamed",",","and","it","can","only","be","renamed","to","dimensions","with","conflict","type","`","NewDimensionConflict","`",".","Parameters","--","--","--","--","--","old_name",":","str","Name","of","the","dimension","to","rename","new_name",":","str","Name","of","the","target","dimension","Raises","--","--","--","ValueError","If","name","is","not","present","in","non-resolved","conflicts",".","Notes","--","--","-","This","may","create","a","new","conflict","if","the","target","dimension","has","a","different","prior","."]
code: def rename_dimension(self, old_name, new_name):
      """Rename dimension `old_name` to `new_name`
  
      Only dimensions with conflict type `MissingDimensionConflict` may be renamed,
      and it can only be renamed to dimensions with conflict type `NewDimensionConflict`.
  
      Parameters
      ----------
      old_name: str
          Name of the dimension to rename
      new_name: str
          Name of the target dimension
  
      Raises
      ------
      ValueError
          If name is not present in non-resolved conflicts.
  
      Notes
      -----
      This may create a new conflict if the target dimension has a different prior.
  
      """
      potential_conflicts = self.conflicts.get_remaining(
          [conflicts.MissingDimensionConflict], dimension_name=old_name
      )
  
      assert (
          len(potential_conflicts) == 1
      ), f"Many missing dimensions with the same name: {', '.join(potential_conflicts)}"
  
      old_dim_conflict = potential_conflicts[0]
  
      potential_conflicts = self.conflicts.get_remaining(
          [conflicts.NewDimensionConflict], dimension_name=new_name
      )
  
      assert (
          len(potential_conflicts) == 1
      ), f"Many new dimensions with the same name: {', '.join(potential_conflicts)}"
  
      new_dim_conflict = potential_conflicts[0]
  
      self.conflicts.try_resolve(
          old_dim_conflict, new_dimension_conflict=new_dim_conflict
      )
  
imports: import logging
  import orion.core
  from orion.algo.space import Dimension
  from orion.core.evc import conflicts
  from orion.core.evc.adapters import CompositeAdapter
label_desc: Use image node_id 14 for calling the ExperimentBranchBuilder obj's underlying member method code with example usage: obj.rename_dimension(old_name, new_name) without return types