@decorator.decorator<EOL>def requires_login(func, *args, **kwargs):
self = args[<NUM_LIT:0>]<EOL>if self.session_token:<EOL><INDENT>return func(*args, **kwargs)<EOL><DEDENT>raise exceptions.NotLoggedIn()<EOL>
Decorator to check that the user is logged in. Raises `BetfairError`
    if instance variable `session_token` is absent.