def author_from_user(usr):
    """author_from_user returns an author string from a user object."""
    if usr and usr.username and usr.email:
        return f"{usr.username} <{usr.email}>"
    # default to generic user
    return "nautobot <nautobot@ntc.com>"