code: def test_pydantic_error_truncation():
      class ListModel(pydantic.BaseModel):
          values: List[int]
  
      # This will trigger the error truncation
      with pytest.raises(ModelkitDataValidationException):
          try:
              ListModel(values=["ok"] * 100)
          except pydantic.ValidationError as exc:
              raise ModelkitDataValidationException(
                  "test error", pydantic_exc=exc
              ) from exc
  
      # This will not
      with pytest.raises(ModelkitDataValidationException):
          try:
              ListModel(values=["ok"])
          except pydantic.ValidationError as exc:
              raise ModelkitDataValidationException(
                  "test error", pydantic_exc=exc
              ) from exc
  
file_path: modelkit/tests/test_validate.py
imports: from typing import Any, Dict, List
  import pydantic
  import pytest
  from modelkit.core.errors import ItemValidationException, ModelkitDataValidationException, ReturnValueValidationException
  from modelkit.core.model import AsyncModel, Model
  from modelkit.core.settings import LibrarySettings
label_desc: Use image node_id 7 for calling a global function with example usage: test_pydantic_error_truncation() without return types