class_docstr: Utility that supports re-dimensioning any HoloViews object via the
  redim method.
class_docstr_tok: ["Utility","that","supports","re-dimensioning","any","HoloViews","object","via","the","redim","method","."]
docstr: Replaces dimensions in list with dictionary of overrides.
  
  Args:
      dimensions: List of dimensions
      overrides: Dictionary of dimension specs indexed by name
  
  Returns:
      list: List of dimensions with replacements applied
docstr_tok: ["Replaces","dimensions","in","list","with","dictionary","of","overrides",".","Args",":","dimensions",":","List","of","dimensions","overrides",":","Dictionary","of","dimension","specs","indexed","by","name","Returns",":","list",":","List","of","dimensions","with","replacements","applied"]
code: def replace_dimensions(cls, dimensions, overrides):
      """Replaces dimensions in list with dictionary of overrides.
  
      Args:
          dimensions: List of dimensions
          overrides: Dictionary of dimension specs indexed by name
  
      Returns:
          list: List of dimensions with replacements applied
      """
      from .dimension import Dimension
  
      replaced = []
      for d in dimensions:
          if d.name in overrides:
              override = overrides[d.name]
          elif d.label in overrides:
              override = overrides[d.label]
          else:
              override = None
  
          if override is None:
              replaced.append(d)
          elif isinstance(override, (str, tuple)):
              replaced.append(d.clone(override))
          elif isinstance(override, Dimension):
              replaced.append(override)
          elif isinstance(override, dict):
              replaced.append(
                  d.clone(
                      override.get("name", None),
                      **{
                          k: v
                          for k, v in override.items()
                          if k != "name"
                      },
                  )
              )
          else:
              raise ValueError(
                  "Dimension can only be overridden "
                  "with another dimension or a dictionary "
                  "of attributes"
              )
      return replaced
  
imports: import copy
  import sys
  from functools import wraps
  from types import FunctionType
  import param
  from .None import util
  from .pprint import PrettyPrinter
label_desc: Use image node_id 3 for calling the Redim obj's underlying member method code with example usage: obj.replace_dimensions(cls, dimensions, overrides) and returns: replaced