code: def test_filter_matches(self):
      doc = self.nlp(self.text)
      matches = self.detector.matcher(doc)
      matches_no_brackets = [
          (x[0], x[1] + 1, x[2] - 1) for x in matches
      ]
      filtered = filter_matches(matches_no_brackets, doc)
  
      assert len(filtered) == 2
      long, short = filtered[0]
      assert long.text_with_ws == "Spinal and bulbar muscular atrophy "
      assert short.text == "SBMA"
      long, short = filtered[1]
      assert long.text_with_ws == "within the androgen receptor "
      assert short.text == "AR"
  
file_path: scispacy/tests/test_abbreviation_detection.py
imports: import unittest
  import spacy
  import pytest
  from scispacy.abbreviation import AbbreviationDetector, find_abbreviation, filter_matches
label_desc: Use image node_id 3 for calling the TestAbbreviationDetector obj's underlying member method code with example usage: obj.test_filter_matches() without return types