code: def _get_deprecated_option(key):
      """
      Retrieves the metadata for a deprecated option, if `key` is deprecated.
  
      Returns
      -------
      DeprecatedOption (namedtuple) if key is deprecated, None otherwise
      """
  
      try:
          d = _deprecated_options[key]
      except KeyError:
          return None
      else:
          return d
  
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 12 for calling a global function with example usage: _get_deprecated_option(key) and returns: d, None