code: def _test_extract(self, method, archive_name, expected_files):
      from_path = os.path.join(self.test_data, "archives", archive_name)
      path = self.extractor.extract(
          from_path, method, self.to_path
      ).get()
      self.assertIsInstance(path, os.PathLike)
      for name, content in expected_files.items():
          path = os.path.join(self.to_path, name)
          self.assertEqual(
              _read(path), content, "File %s has bad content." % path
          )
  
imports: import os
  from unittest import mock
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.download import extractor
  from tensorflow_datasets.core.download import resource
label_desc: Use image node_id 4 for calling the ExtractorTest obj's underlying member method code with example usage: obj._test_extract(method, archive_name, expected_files) without return types