def METHOD_NAME(member: TeamMember) -> bool:
    """
    Returns whether the member is no longer active.
    Users are active when they logged in the past 2 years.
    """
    tzinfo = member.last_login.tzinfo
    two_years_ago = datetime.datetime.now(tzinfo) - datetime.timedelta(days=2 * 365)
    return member.last_login < two_years_ago