code: def check_match(
      self, filename, pattern, should_match=True, fn=fnmatch
  ):
      if should_match:
          self.assertTrue(
              fn(filename, pattern),
              "expected %r to match pattern %r" % (filename, pattern),
          )
      else:
          self.assertFalse(
              fn(filename, pattern),
              "expected %r not to match pattern %r"
              % (filename, pattern),
          )
  
imports: import unittest
  import os
  import string
  import warnings
  from fnmatch import fnmatch, fnmatchcase, translate, filter
label_desc: Use image node_id 1 for calling the FnmatchTestCase obj's underlying member method code with example usage: obj.check_match(filename, pattern, should_match, fn) without return types