code: def create_user(resource_root, username, password, roles):
    
    apiuser = ApiUser(resource_root, username, password=password, roles=roles)
    return call(resource_root.post, USERS_PATH, ApiUser, True,
        data=[apiuser])[0]
docs: Create a user.
  
    @param resource_root: The root Resource object
    @param username: Username
    @param password: Password
    @param roles: List of roles for the user. This should be [] or ['ROLE_USER']
                  for a regular user, ['ROLE_ADMIN'] for an admin, or
                  ['ROLE_LIMITED'] for a limited admin.
    @return: An ApiUser object