code: def _deprecated_config_handler(self, func, msg, warning_class):
          
          @wraps(func)
          def config_handler(*args, **kwargs):
              warnings.warn(msg, warning_class)
              return func(*args, **kwargs)
  
          return config_handler
docs: this function will wrap around parameters that are deprecated
  
          :param msg: deprecation message
          :param warning_class: class of warning exception to be raised
          :param func: function to be wrapped around