code: def test_(self):
      for fname, expected_result in [
          ("bar.tar.gz", TAR_GZ),
          ("bar.gz", GZIP),
          ("bar.tar.zip", ZIP),
          ("bar.gz.strange", NO_EXTRACT),
          ("bar.tar", TAR),
          ("bar.tar.bz2", TAR),
          ("bar.bz2", BZIP2),
      ]:
          res = resource._guess_extract_method(fname)
          self.assertEqual(
              res,
              expected_result,
              "(%s)->%s instead of %s" % (fname, res, expected_result),
          )
  
imports: from tensorflow_datasets import testing
  from tensorflow_datasets.core.download import resource
label_desc: Use image node_id 1 for calling the GuessExtractMethodTest obj's underlying member method code with example usage: obj.test_() without return types