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, name=None, **kwargs):
      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 PairwiseMetric object from inherited base classes: BaseMetric with example: obj = PairwiseMetric(func, name)