code: def test_download(self):
      self.assertTrue(download(TEST_CASE_1, False))
      self.assertTrue(os.path.isdir(TEST_CASE_1_TARGET))
  
      if os.path.isdir(TEST_CASE_1_TARGET):
          print("skipping tests: %s folder exists" % TEST_CASE_1_TARGET)
      else:
          self.assertTrue(download(TEST_CASE_1, True))
          self.assertTrue(os.path.isdir(TEST_CASE_1_TARGET))
  
file_path: NiftyNet/tests/download_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tensorflow
  from niftynet.utilities.download import download
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the NetDownloadTest obj's underlying member method code with example usage: obj.test_download() without return types