@debug_only<EOL>def require_active_token(object):
require_token(object)<EOL>token = object<EOL>if not token.has_id:<EOL><INDENT>raise ApiUsageError("""<STR_LIT>""")<EOL><DEDENT>if not token.has_world:<EOL><INDENT>raise ApiUsageError("""<STR_LIT>""")<EOL><DEDENT>
Raise an ApiUsageError if the given object is not a token that is currently 
participating in the game.  To be participating in the game, the given 
token must have an id number and be associated with the world.