def list_users(client: httpx.Client) -> Response[Union[List[UserModel], ErrorMessage, HTTPValidationError]]:
    """Sends a GET request to `/api/users` endpoint to get the list of users.

    Args:
        client: the authenticated Argilla client to be used to send the request to the API.

    Returns:
        A `Response` object containing a `parsed` attribute with the parsed response if
        the request was successful, which is a list of `UserModel` instances.
    """
    url = "/api/users"

    response = client.get(url=url)

    if response.status_code == 200:
        parsed_response = [UserModel(**user) for user in response.json()]
        return Response(
            status_code=response.status_code,
            content=response.content,
            headers=response.headers,
            parsed=parsed_response,
        )
    return handle_response_error(response)
Sends a GET request to `/api/users` endpoint to get the list of users.

    Args:
        client: the authenticated Argilla client to be used to send the request to the API.

    Returns:
        A `Response` object containing a `parsed` attribute with the parsed response if
        the request was successful, which is a list of `UserModel` instances.
    
argilla-v1/src/argilla_v1/client/sdk/users/api.py