class_docstr: A metric definition which will be calculated using raw queried data
class_docstr_tok: ["A","metric","definition","which","will","be","calculated","using","raw","queried","data"]
docstr: Add an extra filter required for the metric
docstr_tok: ["Add","an","extra","filter","required","for","the","metric"]
code: def prepare_query(self, query: ServiceRecordsQuery):
      """Add an extra filter required for the metric"""
      return query
  
file_path: argilla/src/argilla/server/services/metrics/models.py
imports: from typing import Any, ClassVar, Dict, Generic, Iterable, List, Optional, TypeVar, Union
  from argilla.server.pydantic_v1 import BaseModel, Field
  from argilla.server.services.search.model import ServiceRecordsQuery
  from argilla.server.services.tasks.commons import ServiceRecord
label_desc: Use image node_id 2 for calling the ServicePythonMetric obj's underlying member method code with example usage: obj.prepare_query(query) and returns: query