code: def test_update_with_invalid_role(cli_runner: CliRunner, cli: Typer):
      bad_role_str = "bad-role"
      result = cli_runner.invoke(
          cli, f"database users update username --role {bad_role_str}"
      )
  
      assert result.exit_code == 2
      assert (
          f"{bad_role_str!r} is not one of" in result.output
      ), result.output
  
file_path: argilla/tests/unit/server/cli/database/users/test_update.py
imports: from typing import TYPE_CHECKING
  import pytest
  from argilla.server.models import User, UserRole
  from click.testing import CliRunner
  from typer import Typer
  from tests.factories import UserSyncFactory
label_desc: Use image node_id 2 for calling a global function with example usage: test_update_with_invalid_role(cli_runner, cli) without return types