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 __HOLE__:
        return None
    else:
        return d
dataset/ETHPy150Open cloudera/ibis/ibis/config.py/_get_deprecated_option