docstr: Checks metrics against values.
code: def _check_metrics(self, metrics_and_values):
      """Checks metrics against values."""
      with self.cached_session() as sess:
          sess.run(tf.compat.v1.local_variables_initializer())
          for (metric_op, update_op), value in metrics_and_values:
              sess.run(update_op)
              self.assertAlmostEqual(
                  sess.run(metric_op), value, places=5
              )
  
imports: import math
  import tensorflow
  from tensorflow_ranking.python import losses
  from tensorflow_ranking.python import losses_impl
label_desc: Use image node_id 2 for calling the LossMetricTest obj's underlying member method code with example usage: obj._check_metrics(metrics_and_values) without return types