class_docstr: The dataset metrics service singleton
class_docstr_tok: ["The","dataset","metrics","service","singleton"]
docstr: Creates a service instance
  
  Parameters
  ----------
  dao:
      The dataset records dao
docstr_tok: ["Creates","a","service","instance","Parameters","--","--","--","--","--","dao",":","The","dataset","records","dao"]
code: def __init__(self, dao: DatasetRecordsDAO):
      """
      Creates a service instance
  
      Parameters
      ----------
      dao:
          The dataset records dao
      """
      self.__dao__ = dao
  
file_path: argilla/src/argilla/server/services/metrics/service.py
imports: from typing import Any, Dict, Optional, Type
  from fastapi import Depends
  from argilla.server.daos.backend.search.model import SortConfig
  from argilla.server.daos.models.records import DaoRecordsSearch
  from argilla.server.daos.records import DatasetRecordsDAO
  from argilla.server.services.datasets import ServiceDataset
  from argilla.server.services.metrics.models import ServiceMetric, ServicePythonMetric
  from argilla.server.services.search.model import ServiceBaseRecordsQuery, ServiceRecordsQuery
  from argilla.server.services.tasks.commons import ServiceRecord
label_desc: Use image node_id 2 to create a new MetricsService object  with example: obj = MetricsService(dao)