class_docstr: Class for computing metrics based on two StructuredDatasets.
code: def average(self, dist, privileged):
      distance, weights = dist(privileged=privileged, returned=True)
      return np.average(distance, weights=weights)
  
imports: from functools import partial
  import numpy
  import scipy.spatial.distance
  from aif360.datasets import StructuredDataset
  from aif360.metrics import DatasetMetric, utils
label_desc: Use image node_id 3 for calling the SampleDistortionMetric obj's underlying member method code with example usage: obj.average(dist, privileged) and returns: np