code: def __init__(self, func, names):
      super().__init__()
      self.func = func
      self.names = [names] if isinstance(names, str) else names
      self.__name__ = self.names
      self.reset()
  
file_path: poutyne/poutyne/framework/metrics/decomposable.py
imports: from typing import Iterable, Mapping
  import numpy
  import torch
  import torch.nn
  from poutyne.framework.metrics.base import Metric
  from poutyne.utils import get_batch_size
label_desc: Use image node_id 1 to create a new DecomposableMetric object from inherited base classes: Metric with example: obj = DecomposableMetric(func, names)