class_docstr: Base class for metrics.
docstr: Initialize a `Metrics` object.
  
  Args:
      dataset (Dataset): Dataset on which to evaluate metrics.
code: def __init__(self, dataset):
      """Initialize a `Metrics` object.
  
      Args:
          dataset (Dataset): Dataset on which to evaluate metrics.
      """
      if isinstance(dataset, Dataset):
          self.dataset = dataset
      else:
          raise TypeError("dataset must be of Dataset class")
  
file_path: AIF360/aif360/metrics/metric.py
imports: from abc import abstractmethod
  from collections.abc import Hashable
  from functools import wraps
  from aif360.datasets import Dataset
  from aif360.decorating_metaclass import ApplyDecorator
label_desc: Use image node_id 1 to create a new Metric object from inherited base classes: BaseClass with example: obj = Metric(dataset)