def get_author_name_and_id(soup):
    """
    Get author name and id.

    Examples
    --------
    >>> a_tag = '<a class="topic__author-link" href="/author_id">author_name</a>'
    >>> soup = make_soup(a_tag)
    >>> get_author_name_and_id(soup)
    ('author_name', 'author_id')

    """
    author = soup.select('a.topic__author-link')[0]
    return author.text.strip(), author.get('href').strip('/')