<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def remove_team_member(name, team_name, profile="github"):
    '''
    Removes a team member from a team with team_name.

    name
        The name of the team member to remove.

    team_name
        The name of the team from which to remove the user.

    profile
        The name of the profile configuration to use. Defaults to ``github``.

    CLI Example:

    .. code-block:: bash

        salt myminion github.remove_team_member 'user_name' 'team_name'

    .. versionadded:: 2016.11.0
    '''
    team = get_team(team_name, profile=profile)
    if not team:
        log.error('Team %s does not exist', team_name)
        return False
    try:
        client = _get_client(profile)
        organization = client.get_organization(
            _get_config_value(profile, 'org_name')
        )
        team = organization.get_team(team['id'])
        member = client.get_user(name)

    except UnknownObjectException:
        log.exception('Resource not found: %s', team['id'])
        return False

    if not hasattr(team, 'remove_from_members'):
        return (False, 'PyGithub 1.26.0 or greater is required for team '
                       'management, please upgrade.')

    team.remove_from_members(member)
    return not team.has_in_members(member)