code: def test_create_with_invalid_workspaces(
      sync_db: "Session", cli_runner: CliRunner, cli: Typer
  ):
      result = cli_runner.invoke(
          cli,
          "database users create --first-name first-name --username username --role owner --password 12345678 "
          "--workspace workspace-a --workspace 'invalid workspace' --workspace workspace-c",
      )
  
      assert result.exit_code == 1
      assert sync_db.query(User).count() == 0
      assert sync_db.query(Workspace).count() == 0
  
imports: from typing import TYPE_CHECKING
  import pytest
  from argilla.server.contexts import accounts
  from argilla.server.models import User, UserRole, Workspace
  from click.testing import CliRunner
  from typer import Typer
  from tests.factories import UserSyncFactory, WorkspaceSyncFactory
label_desc: Use image node_id 16 for calling a global function with example usage: test_create_with_invalid_workspaces(sync_db, cli_runner, cli) without return types