docstr: Checks metrics against values.
docstr_tok: ["Checks","metrics","against","values","."]
code: def _check_metrics(self, metrics_and_values):
      """Checks metrics against values."""
      with self.test_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: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import functools
  import math
  import tensorflow
  from tensorflow_ranking.python import metrics
label_desc: Use image node_id 2 for calling the MetricsTest obj's underlying member method code with example usage: obj._check_metrics(metrics_and_values) without return types