code: def test_download(self, idx):
      with skip_if_downloading_fails():
          with self.assertLogs(level="INFO", logger="monai.apps"):
              download_mmar(idx)
          download_mmar(
              idx, progress=False
          )  # repeated to check caching
          with tempfile.TemporaryDirectory() as tmp_dir:
              download_mmar(idx, mmar_dir=tmp_dir, progress=False)
              download_mmar(
                  idx, mmar_dir=Path(tmp_dir), progress=False, version=1
              )  # repeated to check caching
              self.assertTrue(
                  os.path.exists(os.path.join(tmp_dir, idx))
              )
  
file_path: MONAI/tests/test_mmar_download.py
imports: from __future__ import annotations
  import os
  import tempfile
  import unittest
  from pathlib import Path
  import numpy
  import torch
  from parameterized import parameterized
  from monai import __version__
  from monai.apps import download_mmar, load_from_mmar
  from monai.apps.mmars import MODEL_DESC
  from monai.apps.mmars.mmars import _get_val
  from monai.utils import version_leq
  from tests.utils import skip_if_downloading_fails, skip_if_quick
label_desc: Use image node_id 1 for calling the TestMMMARDownload obj's underlying member method code with example usage: obj.test_download(idx) without return types