def METHOD_NAME(sender, instance, *args, **kwargs):  # pylint: disable=unused-argument
    """
    Mark AccessTokens as expired for 'restricted applications' if required.
    """
    if RestrictedApplication.should_expire_access_token(instance.application):
        instance.expires = datetime(1970, 1, 1, tzinfo=utc)