code: def _translate_key(key):
      """
      if key id deprecated and a replacement key defined, will return the
      replacement key, otherwise returns `key` as - is
      """
  
      d = _get_deprecated_option(key)
      if d:
          return d.rkey or key
      else:
          return key
  
imports: from collections import namedtuple
  from contextlib import contextmanager
  import re
  import warnings
  import pandas.compat
  from pandas.compat import lmap, map, u
label_desc: Use image node_id 14 for calling a global function with example usage: _translate_key(key) and returns: unknown, key