docstr: Used for extends fields to store in db. Tasks that would include extra
  properties than commons (predicted, annotated_as,....) could implement
  this method.
docstr_tok: ["Used","for","extends","fields","to","store","in","db",".","Tasks","that","would","include","extra","properties","than","commons","(","predicted",",","annotated_as",",","....",")","could","implement","this","method","."]
code: def extended_fields(self) -> Dict[str, Any]:
      """
      Used for extends fields to store in db. Tasks that would include extra
      properties than commons (predicted, annotated_as,....) could implement
      this method.
      """
      return {
          "predicted": self.predicted,
          "annotated_as": self.annotated_as,
          "predicted_as": self.predicted_as,
          "annotated_by": self.annotated_by,
          "predicted_by": self.predicted_by,
          "score": self.scores,
      }
  
imports: import uuid
  import warnings
  from datetime import datetime
  from typing import Any, Dict, Generic, List, Optional, TypeVar, Union
  from argilla import _messages
  from argilla.server.commons.models import PredictionStatus, TaskStatus, TaskType
  from argilla.server.constants import JS_MAX_SAFE_INTEGER, PROTECTED_METADATA_FIELD_PREFIX
  from argilla.server.daos.backend.search.model import BaseRecordsQuery, SortConfig
  from argilla.server.helpers import flatten_dict
  from argilla.server.pydantic_v1 import BaseModel, Field, conint, constr, root_validator, validator
  from argilla.server.pydantic_v1.generics import GenericModel
  from argilla.server.settings import settings
  from argilla.utils import limit_value_length
label_desc: Use image node_id 14 for calling the BaseRecordInDB obj's underlying member method code with example usage: obj.extended_fields() and returns: dict