def METHOD_NAME(kth_id):
    # KTH Profiles API - Swagger: https://api.kth.se/api/profile/swagger/?url=/api/profile/swagger.json#/v1.1/getPublicProfile_v11
    # At this moment, not all the users are found due to an issue in the Profile API. We use kottnet API in the meantime.
    # base_uri = "https://api.kth.se/api/profile/1.1/"
    base_uri = "https://api.kottnet.net/kth/"
    uri = base_uri + kth_id
    retry_strategy = Retry(
        total=2, status_forcelist=[429, 500, 502, 503, 504], method_whitelist=["GET"]
    )
    adapter = HTTPAdapter(max_retries=retry_strategy)
    sess = requests.Session()
    sess.mount("https://", adapter)
    try:
        response = sess.get(uri)
        json = response.json()
        if response.status_code == 404:
            print("student not found")
            return None
        if response.status_code // 100 != 2 or len(response.content) == 0:
            print("failed to connect to KTH Profiles API")
            return None
    except:
        return None
    email = json.get("username")
    if email is not None:
        email += "@kth.se"
    full_name = json.get("name")
    first_name = None
    last_name = None
    if full_name is not None:
        full_name = full_name.split(" ", 1)
        first_name = full_name[0]
        last_name = full_name[1]
    return dict(email=email, first_name=first_name, last_name=last_name)