code: def _normalize_id(cls, v):
      if v is None:
          return str(uuid.uuid4())
      if isinstance(v, int):
          message = (
              f"Integer ids won't be supported in future versions. We recommend to start using strings instead. "
              "For datasets already containing integer values we recommend migrating them to avoid deprecation issues. "
              "See https://docs.argilla.io/en/latest/getting_started/installation/configurations"
              "/database_migrations.html#elasticsearch"
          )
          warnings.warn(message, DeprecationWarning)
          # See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
          if v > JS_MAX_SAFE_INTEGER:
              message = (
                  "You've provided a big integer value. Use a string instead, otherwise you may experience some "
                  "problems using the UI. See "
                  "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number"
                  "/MAX_SAFE_INTEGER"
              )
              warnings.warn(message, UserWarning)
      return v
  
imports: import uuid
  import warnings
  from datetime import datetime
  from typing import Any, Dict, Generic, List, Optional, TypeVar, Union
  from argilla import _messages
  from argilla.server.commons.models import PredictionStatus, TaskStatus, TaskType
  from argilla.server.constants import JS_MAX_SAFE_INTEGER, PROTECTED_METADATA_FIELD_PREFIX
  from argilla.server.daos.backend.search.model import BaseRecordsQuery, SortConfig
  from argilla.server.helpers import flatten_dict
  from argilla.server.pydantic_v1 import BaseModel, Field, conint, constr, root_validator, validator
  from argilla.server.pydantic_v1.generics import GenericModel
  from argilla.server.settings import settings
  from argilla.utils import limit_value_length
label_desc: Use image node_id 3 for calling the BaseRecordInDB obj's underlying member method code with example usage: obj._normalize_id(cls, v) and returns: v, str