code: def test_get_abbreviation_expansion_pairs(self):
      snippet = "the patient is in the emergency room."
      abbreviations_by_expansion = {
          "patient": ["pt"],
          "emergency room": ["er"],
      }
      expansion_re = re.compile("(patient|emergency room)")
      result = c4_wsrs_utils._get_abbreviation_expansion_pairs(
          snippet, abbreviations_by_expansion, expansion_re
      )
      self.assertEqual(
          result, {4: ("pt", "patient"), 22: ("er", "emergency room")}
      )
  
file_path: datasets/tensorflow_datasets/text/c4_wsrs/c4_wsrs_utils_test.py
imports: import re
  from unittest import mock
  from absl.testing import absltest
  import numpy
  from tensorflow_datasets.text.c4_wsrs import c4_wsrs_utils
label_desc: Use image node_id 2 for calling the C4WsrsUtilsTest obj's underlying member method code with example usage: obj.test_get_abbreviation_expansion_pairs() without return types