code: def test_actions(self):
      testing_dir = os.path.join(
          os.path.dirname(os.path.realpath(__file__)), "testing_data"
      )
      config_dict = testing_data_config("images", "mednist")
      url = config_dict["url"]
      filepath = Path(testing_dir) / "MedNIST.tar.gz"
      output_dir = Path(testing_dir)
      hash_val, hash_type = (
          config_dict["hash_val"],
          config_dict["hash_type"],
      )
      with skip_if_downloading_fails():
          download_and_extract(
              url,
              filepath,
              output_dir,
              hash_val=hash_val,
              hash_type=hash_type,
          )
          download_and_extract(
              url,
              filepath,
              output_dir,
              hash_val=hash_val,
              hash_type=hash_type,
          )
  
      wrong_md5 = "0"
      with self.assertLogs(logger="monai.apps", level="ERROR"):
          try:
              download_url(url, filepath, wrong_md5)
          except (ContentTooShortError, HTTPError, RuntimeError) as e:
              if isinstance(e, RuntimeError):
                  # FIXME: skip MD5 check as current downloading method may fail
                  self.assertTrue(str(e).startswith("md5 check"))
              return  # skipping this test due the network connection errors
  
      try:
          extractall(filepath, output_dir, wrong_md5)
      except RuntimeError as e:
          self.assertTrue(str(e).startswith("md5 check"))
  
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 1 for calling the TestDownloadAndExtract obj's underlying member method code with example usage: obj.test_actions() without return types