def validate_external_id(cls, external_id: Any) -> Union[str, int, uuid.UUID]:
        """Ensure external_id is captured correctly and only converted if None."""
        if external_id is None:
            external_id = uuid.uuid4()
        return external_id
Ensure external_id is captured correctly and only converted if None.
argilla/src/argilla/_models/_record/_record.py