class_docstr: An OptsSpec is a string specification that describes an
  OptionTree. It is a list of tree path specifications (using dotted
  syntax) separated by keyword lists for any of the style, plotting
  or normalization options. These keyword lists are denoted
  'plot(..)', 'style(...)' and 'norm(...)'  respectively.  These
  three groups may be specified even more concisely using keyword
  lists delimited by square brackets, parentheses and braces
  respectively.  All these sets are optional and may be supplied in
  any order.
  
  For instance, the following string:
  
  Image (interpolation=None) plot(show_title=False) Curve style(color='r')
  
  Would specify an OptionTree where Image has "interpolation=None"
  for style and 'show_title=False' for plot options. The Curve has a
  style set such that color='r'.
  
  The parser is fairly forgiving; commas between keywords are
  optional and additional spaces are often allowed. The only
  restriction is that keywords *must* be immediately followed by the
  '=' sign (no space).
docstr: Convert any potentially deprecated paths and issue appropriate warnings
docstr_tok: ["Convert","any","potentially","deprecated","paths","and","issue","appropriate","warnings"]
code: def apply_deprecations(cls, path):
      "Convert any potentially deprecated paths and issue appropriate warnings"
      split = path.split(".")
      msg = "Element {old} deprecated. Use {new} instead."
      for old, new in cls.deprecations:
          if split[0] == old:
              parsewarning.warning(msg.format(old=old, new=new))
              return ".".join([new] + split[1:])
      return path
  
imports: from itertools import groupby
  import numpy
  import param
  import pyparsing
  from ..core.options import Cycle, Options, Palette
  from ..core.util import merge_option_dicts
  from ..operation import Compositor
  from .transform import dim
label_desc: Use image node_id 3 for calling the OptsSpec obj's underlying member method code with example usage: obj.apply_deprecations(cls, path) and returns: path, str