import requests


def get_author_info(author_id):
    """what it does: queries Semantic Scholar and retrieves info for a given author
       arguments: takes a unique author id as argument
       returns: the query response as a dictionary"""
    url = f"https://api.semanticscholar.org/graph/v1/author/{author_id}?fields=url,name,affiliations,homepage,paperCount,citationCount,hIndex"
    response = requests.get(url).json()
    return response