def METHOD_NAME(self, avatar):
    """
    Set the avatar.
    :param avatar: See function create for examples.
    :return: The response on success
    API docs: https://docs.atlassian.com/bitbucket-server/rest/7.8.0/bitbucket-rest.html#idp156
    """
    return self.post("avatar.png", data={"avatar": avatar})