code: def _schema_or_kwargs(
      schema: Union[Schema, None], values: Dict[str, Any]
  ) -> Dict[str, Any]:
      if schema:
          return schema.dict()
      return values
  
file_path: argilla/src/argilla/server/models/mixins.py
imports: from datetime import datetime
  from typing import TYPE_CHECKING, Any, Dict, List, Set, TypeVar, Union
  from sqlalchemy import sql
  from sqlalchemy.dialects.mysql import insert
  from sqlalchemy.dialects.postgresql import insert
  from sqlalchemy.dialects.sqlite import insert
  from sqlalchemy.engine.default import DefaultExecutionContext
  from sqlalchemy.orm import Mapped, mapped_column
  from typing_extensions import Self
  from argilla.server.pydantic_v1 import BaseModel
label_desc: Use image node_id 1 for calling a global function with example usage: _schema_or_kwargs(schema, values) and returns: values, schema