code: def test_default(self, key, file_type):
      with tempfile.TemporaryDirectory() as tmp_dir:
          with skip_if_downloading_fails():
              img_spec = testing_data_config("images", key)
              download_and_extract(
                  img_spec["url"],
                  output_dir=tmp_dir,
                  hash_val=img_spec["hash_val"],
                  hash_type=img_spec["hash_type"],
                  file_type=file_type,
              )
  
file_path: MONAI/tests/test_download_and_extract.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from pathlib import Path
  from urllib.error import ContentTooShortError, HTTPError
  from parameterized import parameterized
  from monai.apps import download_and_extract, download_url, extractall
  from tests.utils import skip_if_downloading_fails, skip_if_quick, testing_data_config
label_desc: Use image node_id 2 for calling the TestDownloadAndExtract obj's underlying member method code with example usage: obj.test_default(key, file_type) without return types