def _check_value_length(cls, metadata):
        """Checks metadata values length and warn message for large values"""
        if not metadata:
            return metadata

        default_length_exceeded = False
        for k, v in metadata.items():
            if k.startswith(cls._PROTECTED_METADATA_FIELD_PREFIX):
                continue
            if isinstance(v, str) and len(v) > DEFAULT_MAX_KEYWORD_LENGTH:
                default_length_exceeded = True
                break

        if default_length_exceeded:
            message = (
                "Some metadata values could exceed the max length. For those cases,"
                " values will be truncated by keeping only the last"
                f" {DEFAULT_MAX_KEYWORD_LENGTH} characters. " + _messages.ARGILLA_METADATA_FIELD_WARNING_MESSAGE
            )
            warnings.warn(message, UserWarning, stacklevel=2)

        return metadata
Checks metadata values length and warn message for large values
argilla-v1/src/argilla_v1/client/models.py