code: def test(self, verify_fn):
      tmp_dir = tempfile.mkdtemp()
      width = 16
      depth = 8
      for i in range(width):
          for j in range(depth):
              new_base = os.path.join(
                  tmp_dir,
                  str(i),
                  *[str(dir_name) for dir_name in range(j)],
              )
              if not os.path.exists(new_base):
                  os.makedirs(new_base)
              child_files = (
                  ["a.py", "b.pyc"]
                  if j < depth - 1
                  else ["c.txt", "d.log"]
              )
              for f in child_files:
                  filename = os.path.join(new_base, f)
                  open(filename, "w").close()
  
      patterns = [
          os.path.join(
              tmp_dir,
              os.path.join(*["**" for _ in range(depth)]),
              suffix,
          )
          for suffix in ["*.txt", "*.log"]
      ]
  
      num_outputs = width * len(patterns)
      verify_fn(
          self,
          lambda: self._build_iterator_graph(patterns),
          num_outputs,
      )
  
      shutil.rmtree(tmp_dir, ignore_errors=True)
  
imports: import os
  import shutil
  import tempfile
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import matching_files
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 2 for calling the MatchingFilesDatasetCheckpointTest obj's underlying member method code with example usage: obj.test(verify_fn) without return types