code: def test_get_metric_value_raise_key_error(self):
      input_dict = {"": {"": {"accuracy": 0.1}}}
      metric_name = "nonexistent_metric"
      with self.assertRaises(KeyError):
          weight_utils._get_metric_value(input_dict, 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 4 for calling the WeightUtilsTest obj's underlying member method code with example usage: obj.test_get_metric_value_raise_key_error() without return types