def METHOD_NAME(image):
    try:
        raw_author = image.get("_embedded", {}).get("author", [])[0]
    except IndexError:
        return None, None
    if not (author := raw_author.get("name")):
        author = raw_author.get("slug")
    if not (author_url := raw_author.get("url")):
        author_url = raw_author.get("link")
    return author, author_url