code: def _is_metric_in_list(metric, metric_classes):
      for metric_class in metric_classes:
          if isinstance(metric, metric_class):
              return True
  
      return False
  
imports: import abc
  import logging
  import math
  from sklearn.base import BaseEstimator
  import geomstats.backend
  import geomstats.errors
  from geomstats.geometry.discrete_curves import ElasticTranslationMetric, SRVTranslationMetric
  from geomstats.geometry.euclidean import EuclideanMetric
  from geomstats.geometry.hypersphere import HypersphereMetric
  from geomstats.geometry.matrices import MatricesMetric
  from geomstats.geometry.minkowski import MinkowskiMetric
label_desc: Use image node_id 1 for calling a global function with example usage: _is_metric_in_list(metric, metric_classes) and returns: False, True