class_docstr: Defines metrics for toxicity.
class_docstr_tok: ["Defines","metrics","for","toxicity","."]
code: def __repr__(self):
      return "ToxicityMetric()"
  
file_path: H2O/h2o_hf/helm/src/helm/benchmark/metrics/toxicity_metrics.py
imports: from typing import List
  from helm.common.perspective_api_request import PerspectiveAPIRequest, PerspectiveAPIRequestResult
  from helm.common.request import RequestResult
  from helm.benchmark.adaptation.request_state import RequestState
  from helm.benchmark.adaptation.adapter_spec import AdapterSpec
  from .metric import Metric
  from .metric_name import MetricName
  from .metric_service import MetricService
  from .statistic import Stat
label_desc: Use image node_id 1 for calling the ToxicityMetric obj's underlying member method code with example usage: obj.__repr__() and returns: str