class_docstr: Interactive command prompt to solve the configurations conflicts
  between the parent configuration and the new one.
class_docstr_tok: ["Interactive","command","prompt","to","solve","the","configurations","conflicts","between","the","parent","configuration","and","the","new","one","."]
docstr: Auto-complete addition or deletion of new, changed or missing dimensions
code: def _complete_dim(self, conflict_types, text, line, begidx, endidx):
      """Auto-complete addition or deletion of new, changed or missing dimensions"""
      potential_conflicts = self.branch_builder.conflicts.get_remaining(
          conflict_types
      )
  
      names = [
          conflict.dimension.name.lstrip("/")
          for conflict in potential_conflicts
      ]
  
      if len(line.split(" ")) == 2:
          return self._get_completions(names, text)
  
      # Dimension name is fully specified in command line
      names = [name for name in names if name == line.split(" ")[1]]
      if not names:
          return []
      name = names[0]
  
      potential_conflicts = [
          conflict
          for conflict in potential_conflicts
          if conflict.dimension.name.lstrip("/") == name
      ]
      if not potential_conflicts:
          return []
      conflict = potential_conflicts[0]
  
      if isinstance(
          conflict,
          (
              conflicts.NewDimensionConflict,
              conflicts.MissingDimensionConflict,
          ),
      ):
          return self._complete_add_new_or_missing(
              conflict, text, line, begidx, endidx
          )
      else:
          return self._complete_add_changed(
              conflict, text, line, begidx, endidx
          )
  
imports: import argparse
  import cmd
  import functools
  import io
  import os
  import readline
  import shlex
  import traceback
  from orion.algo.space import Dimension
  from orion.core.evc import adapters, conflicts
  from orion.core.utils.diff import green, red
label_desc: Use image node_id 40 for calling the BranchingPrompt obj's underlying member method code with example usage: obj._complete_dim(conflict_types, text, line, begidx, endidx) and returns: self, list, list, self, self