code: def setUp(self):
      super(MetricsTest, self).setUp()
      tf.compat.v1.reset_default_graph()
  
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 1 for calling the MetricsTest obj's underlying member method code with example usage: obj.setUp() without return types