code: def test_protected_metadata_without_truncation():
      long_value = "a" * (settings.metadata_field_length + 1)
  
      record = BaseRecordInDB(
          metadata=dict(a=long_value, _protected=long_value)
      )
      assert (
          record.metadata["a"]
          == long_value[: settings.metadata_field_length]
      )
      assert record.metadata["_protected"] == long_value
  
file_path: argilla/tests/unit/server/daos/models/test_records.py
imports: import warnings
  import pytest
  from argilla.server.daos.models.records import BaseRecordInDB
  from argilla.server.settings import settings
label_desc: Use image node_id 3 for calling a global function with example usage: test_protected_metadata_without_truncation() without return types