class_docstr: Configured metrics for token classification
class_docstr_tok: ["Configured","metrics","for","token","classification"]
code: def build_tokens_metrics(
      cls, record: ServiceTokenClassificationRecord
  ) -> List[TokenMetrics]:
      return [
          TokenMetrics(
              value=token_value,
              capitalness=cls.capitalness(token_value),
          )
          for token_idx, token_value in enumerate(record.tokens)
      ]
  
imports: from typing import Any, ClassVar, Dict, Iterable, List, Optional, Set, Tuple
  from argilla.server.pydantic_v1 import BaseModel, Field
  from argilla.server.services.metrics import ServiceBaseMetric, ServicePythonMetric
  from argilla.server.services.metrics.models import CommonTasksMetrics
  from argilla.server.services.search.model import ServiceRecordsQuery
  from argilla.server.services.tasks.token_classification.model import EntitySpan, ServiceTokenClassificationAnnotation, ServiceTokenClassificationRecord
  from argilla.utils import SpanUtils
label_desc: Use image node_id 4 for calling the TokenClassificationMetrics obj's underlying member method code with example usage: obj.build_tokens_metrics(cls, record) and returns: unknown