code: def test_get_metric_value_raise_empty_dict(self):
      with self.assertRaises(KeyError):
          weight_utils._get_metric_value({}, "metric_name")
  
file_path: fairness-indicators/fairness_indicators/remediation/weight_utils_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from fairness_indicators.remediation import weight_utils
  import tensorflow.compat.v1
label_desc: Use image node_id 6 for calling the WeightUtilsTest obj's underlying member method code with example usage: obj.test_get_metric_value_raise_empty_dict() without return types