code: def test_metadata_values_length():
      text = "oh yeah!"
      expected_length = 200
      metadata = {"too_long": "a" * expected_length}
  
      with pytest.warns(expected_warning=UserWarning):
          record = TextClassificationRecord(
              inputs={"text": text},
              metadata=metadata,
          )
      assert len(record.metadata["too_long"]) == expected_length
  
      with pytest.warns(expected_warning=UserWarning):
          record = TokenClassificationRecord(
              text=text,
              tokens=text.split(),
              metadata=metadata,
          )
      assert len(record.metadata["too_long"]) == expected_length
  
imports: import datetime
  import json
  import uuid
  from typing import Any, Optional
  import numpy
  import pandas
  import pytest
  from argilla.client.models import Text2TextRecord, TextClassificationRecord, TokenClassificationRecord, _Validators
  from pydantic import ValidationError
label_desc: Use image node_id 10 for calling a global function with example usage: test_metadata_values_length() without return types