class_docstr: A container class for metrics passed to `Model.compile`.
class_docstr_tok: ["A","container","class","for","metrics","passed","to","`","Model.compile","`","."]
docstr: Convert user-supplied metrics to `Metric` objects.
code: def _get_metric_objects(self, metrics, y_t, y_p):
      """Convert user-supplied metrics to `Metric` objects."""
      metrics = nest.flatten(metrics)
      return [self._get_metric_object(m, y_t, y_p) for m in metrics]
  
imports: import copy
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.keras import losses
  from tensorflow.python.keras import metrics
  from tensorflow.python.keras.utils import generic_utils
  from tensorflow.python.keras.utils import losses_utils
  from tensorflow.python.keras.utils import tf_utils
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.util import nest
label_desc: Use image node_id 11 for calling the MetricsContainer obj's underlying member method code with example usage: obj._get_metric_objects(metrics, y_t, y_p) and returns: unknown