class_docstr: Base class for our record models that takes care of general validations
class_docstr_tok: ["Base","class","for","our","record","models","that","takes","care","of","general","validations"]
docstr: Converts pandas `NaT`s to `None`s and None´s to datetime.now()
docstr_tok: ["Converts","pandas","`","NaT","`","s","to","`","None","`","s","and","None\u00b4s","to","datetime.now","(",")"]
code: def _nat_to_none_and_one_to_now(cls, v):
      """Converts pandas `NaT`s to `None`s and None´s to datetime.now()"""
      if v is pd.NaT:
          v = None
  
      v = v or datetime.datetime.now()
  
      return v
  
imports: import datetime
  import logging
  import uuid
  import warnings
  from enum import Enum
  from typing import Any, Dict, List, Optional, Tuple, Union
  import pandas
  from deprecated import deprecated
  from argilla import _messages
  from argilla._constants import DEFAULT_MAX_KEYWORD_LENGTH
  from argilla.pydantic_v1 import BaseModel, Field, PrivateAttr, root_validator, validator
  from argilla.utils.span_utils import SpanUtils
label_desc: Use image node_id 6 for calling the _Validators obj's underlying member method code with example usage: obj._nat_to_none_and_one_to_now(cls, v) and returns: v