def users_set_avatar(self, avatar_url, **kwargs):
if avatar_url.startswith('<STR_LIT>') or avatar_url.startswith('<STR_LIT>'):<EOL><INDENT>return self.__call_api_post('<STR_LIT>', avatarUrl=avatar_url, kwargs=kwargs)<EOL><DEDENT>else:<EOL><INDENT>avatar_file = {"<STR_LIT:image>": open(avatar_url, "<STR_LIT:rb>")}<EOL>return self.__call_api_post('<STR_LIT>', files=avatar_file, kwargs=kwargs)<EOL><DEDENT>
Set a user’s avatar