code: def jwt_required(realm=None):
      
      def wrapper(fn):
          @wraps(fn)
          def decorator(*args, **kwargs):
              _jwt_required(realm or current_app.config['JWT_DEFAULT_REALM'])
              return fn(*args, **kwargs)
          return decorator
      return wrapper
docs: View decorator that requires a valid JWT token to be present in the request
  
      :param realm: an optional realm