def is_expand():
 return (flask.request.args.get('expand') is not None)

def is_expand ( ) : return ( flask . request . args . get ( 'expand' ) is not None )
returns whether the current request is for an expanded response .