code: def _build_user_create(self, user: dict) -> UserCreate:
      return UserCreate(
          first_name=user.get("full_name", ""),
          username=user["username"],
          role=self._user_role(user),
          api_key=user["api_key"],
          password_hash=user["hashed_password"],
          workspaces=[
              WorkspaceCreate(name=workspace_name)
              for workspace_name in self._user_workspace_names(user)
          ],
      )
  
file_path: argilla/src/argilla/server/cli/database/users/migrate.py
imports: import asyncio
  from typing import TYPE_CHECKING, List, Optional
  import typer
  import yaml
  from argilla.pydantic_v1 import BaseModel, Field, constr
  from argilla.server.database import AsyncSessionLocal
  from argilla.server.models import User, UserRole
  from argilla.server.security.auth_provider.db.settings import settings
  from argilla.server.security.model import USER_USERNAME_REGEX, WORKSPACE_NAME_REGEX
  from .utils import get_or_new_workspace
label_desc: Use image node_id 2 for calling the UsersMigrator obj's underlying member method code with example usage: obj._build_user_create(user) and returns: UserCreate