code: def metrics(self):
      if not self.built:
          return []
      metrics = []
      for m in self._flat_metrics + self._flat_weighted_metrics:
          if isinstance(m, MetricsList):
              metrics.extend(m.metrics)
          elif m is not None:
              metrics.append(m)
      return metrics
  
imports: import tree
  from keras import backend
  from keras import losses
  from keras import metrics
  from keras import ops
  from keras.utils.naming import get_object_name
label_desc: Use image node_id 2 for calling the CompileMetrics obj's underlying member method code with example usage: obj.metrics() and returns: metrics, list