code: def test_only_global_weight_feature(self):
      m = example_weight_map.ExampleWeightMap(weight_feature="w")
      self.assertEqual(m.get(types.FeaturePath(["feature"])), "w")
      self.assertEqual(m.all_weight_features(), frozenset(["w"]))
  
file_path: data-validation/tensorflow_data_validation/utils/example_weight_map_test.py
imports: from absl.testing import absltest
  from tensorflow_data_validation import types
  from tensorflow_data_validation.utils import example_weight_map
label_desc: Use image node_id 2 for calling the ExampleWeightMapTest obj's underlying member method code with example usage: obj.test_only_global_weight_feature() without return types