class_docstr: Compute metric pairwise.
  
  Parameters
  ----------
  func : function
      Function that computes the pairwise metric.
  
  name : str
      Name of the metric
code: def __init__(self, func, method="jackknife", name=None, **kwargs):
      allowed_methods = ("jackknife",)
      if method not in allowed_methods:
          raise NotImplementedError(
              f"Provided method is not implemented yet. "
              f"Currently only: {allowed_methods} are implemented"
          )
      self.method = method
  
      name = func.__name__ if name is None else name
      self.func = func
  
      super().__init__(name=name, **kwargs)
  
file_path: sktime/sktime/benchmarking/metrics.py
imports: import numpy
  from sktime.benchmarking.base import BaseMetric
label_desc: Use image node_id 1 to create a new AggregateMetric object from inherited base classes: BaseMetric with example: obj = AggregateMetric(func, method, name)