code: def _process_deprecated(attrib, deprecated_attrib, kwargs):
          
          if deprecated_attrib not in DEPRECATIONS:
              raise ValueError('{0} not included in deprecations list'
                               .format(deprecated_attrib))
          if deprecated_attrib in kwargs:
              warnings.warn("'{0}' is DEPRECATED use '{1}' instead"
                            .format(deprecated_attrib,
                                    DEPRECATIONS[deprecated_attrib]),
                            DeprecationWarning)
              if attrib:
                  raise ValueError("You can't use both '{0}' and '{1}'. "
                                   "Please only use one of them"
                                   .format(deprecated_attrib,
                                           DEPRECATIONS[deprecated_attrib]))
              else:
                  return kwargs.pop(deprecated_attrib)
          return attrib
docs: Processes optional deprecate arguments