code: def test_text_length(mocked_client):
      dataset = "test_text_length"
  
      delete_ignoring_errors(dataset)
  
      log(
          [
              TextClassificationRecord(
                  id=1,
                  inputs={"text": "my first example"},
                  prediction=[("spam", 0.8), ("ham", 0.2)],
                  annotation=["spam"],
              ),
              TextClassificationRecord(
                  id=2,
                  inputs={"text": "my second example"},
                  prediction=[("ham", 0.8), ("spam", 0.2)],
                  annotation=["ham"],
                  status="Default",
              ),
              TextClassificationRecord(
                  id=3,
                  inputs={"text": "simple text"},
                  prediction=[("ham", 0.8), ("spam", 0.2)],
                  annotation=["ham"],
              ),
          ],
          name=dataset,
      )
  
      results = text_length(dataset)
      assert results
      assert results.data == {
          "11.0": 1,
          "12.0": 0,
          "13.0": 0,
          "14.0": 0,
          "15.0": 0,
          "16.0": 1,
          "17.0": 1,
      }
      results.visualize()
  
file_path: argilla/tests/integration/metrics/test_common_metrics.py
imports: import argilla
  import argilla
  import argilla.client.singleton
  import pytest
  from argilla.client.api import log
  from argilla.client.models import TextClassificationRecord
  from argilla.metrics.commons import keywords, records_status, text_length
  from tests.integration.utils import delete_ignoring_errors
label_desc: Use image node_id 3 for calling a global function with example usage: test_text_length(mocked_client) without return types