def _should_refresh_token(api_key):
    '\n    :return: True if the token has expired, or is about to expire in\n    REFRESH_TOKEN_SAFETY_MARGIN hours or less, False otherwise.\n    '
    return (_get_token_info_by_api_key(api_key, TIME_TO_REFRESH) < datetime.datetime.now())
:return: True if the token has expired, or is about to expire in
REFRESH_TOKEN_SAFETY_MARGIN hours or less, False otherwise.
def _should_refresh_token(api_key):
    '\n    :return: True if the token has expired, or is about to expire in\n    REFRESH_TOKEN_SAFETY_MARGIN hours or less, False otherwise.\n    '
    return (_get_token_info_by_api_key(api_key, TIME_TO_REFRESH) < datetime.datetime.now())