code: def scores(self) -> List[float]:
      if not self.prediction:
          return []
      if self.prediction.score is not None:
          return [self.prediction.score]
      return [e.score for e in self.prediction.entities]
  
imports: from typing import Dict, List, Optional, Set, Tuple
  from argilla.server.commons.models import PredictionStatus, TaskType
  from argilla.server.constants import DEFAULT_MAX_KEYWORD_LENGTH
  from argilla.server.pydantic_v1 import BaseModel, Field, validator
  from argilla.server.services.search.model import ServiceBaseRecordsQuery, ServiceScoreRange
  from argilla.server.services.tasks.commons import ServiceBaseAnnotation, ServiceBaseRecord
  from argilla.utils import SpanUtils
label_desc: Use image node_id 8 for calling the ServiceTokenClassificationRecord obj's underlying member method code with example usage: obj.scores() and returns: unknown, list, list