code: def users_set_avatar(self, avatar_url, **kwargs):
          
          if avatar_url.startswith('http://') or avatar_url.startswith('https://'):
              return self.__call_api_post('users.setAvatar', avatarUrl=avatar_url, kwargs=kwargs)
          else:
              avatar_file = {"image": open(avatar_url, "rb")}
              return self.__call_api_post('users.setAvatar', files=avatar_file, kwargs=kwargs)
docs: Set a user’s avatar