class_docstr: Base metric container class, for easier definition of containers. Ensures consistent format
  before being turned into a dataframe row.
  
  Parameters
  ----------
  id : str
      ID used as index.
  name : str
      Full name.
  score_func : type
      The callable used for the score function, eg. sklearn.metrics.accuracy_score.
  scorer : str or callable, default = None
      The scorer passed to models. Can be a string representing a built-in sklearn scorer,
      a sklearn Scorer object, or None, in which case a Scorer object will be created from
      score_func and args.
  args : dict, default = {} (empty dict)
      The arguments to always pass to constructor when initializing score_func of class_def class.
  display_name : str, default = None
      Display name (shorter than name). If None or empty, will use name.
  is_custom : bool, default = False
      Is the metric custom. Should be False for all metrics defined in PyCaret.
  
  Attributes
  ----------
  id : str
      ID used as index.
  name : str
      Full name.
  score_func : type
      The callable used for the score function, eg. sklearn.metrics.accuracy_score.
  scorer : str or callable
      The scorer passed to models. Can be a string representing a built-in sklearn scorer,
      a sklearn Scorer object, or None, in which case a Scorer object will be created from
      score_func and args.
  args : dict
      The arguments to always pass to constructor when initializing score_func of class_def class.
  display_name : str
      Display name (shorter than name). If None or empty, will use name.
  is_custom : bool
      Is the metric custom. Should be False for all metrics defined in PyCaret.
code: def score_func(self, value):
      self.class_def = value
  
file_path: pycaret/pycaret/containers/metrics/base_metric.py
imports: from typing import Any, Dict, Optional, Union
  from sklearn.metrics import make_scorer
  from sklearn.metrics._scorer import _BaseScorer
  from pycaret.containers.base_container import BaseContainer
label_desc: Use image node_id 3 for calling the MetricContainer obj's underlying member method code with example usage: obj.score_func(value) without return types