def requires_badges_enabled(function):
 def wrapped(*args, **kwargs):
  "\n        Wrapped function which bails out early if bagdes aren't enabled.\n        "
  if (not badges_enabled()):
   return
  return function(*args, **kwargs)
 return wrapped

def requires_badges_enabled ( function ) : def wrapped ( * args , ** kwargs ) : if ( not badges_enabled ( ) ) : return return function ( * args , ** kwargs ) return wrapped
decorator that bails a function out early if badges arent enabled .