class_docstr: Tests included here all pertain to the NiftyNet global configuration
  file and `NiftyNetGlobalConfig` is a singleton. These require each test
  to be run separately. This is why all tests are decorated with
  `skipUnless`.
class_docstr_tok: ["Tests","included","here","all","pertain","to","the","NiftyNet","global","configuration","file","and","`","NiftyNetGlobalConfig","`","is","a","singleton",".","These","require","each","test","to","be","run","separately",".","This","is","why","all","tests","are","decorated","with","`","skipUnless","`","."]
code: def setUp(self):
      NiftyNetGlobalConfigTestBase.remove_path(
          NiftyNetGlobalConfigTestBase.config_home
      )
      NiftyNetGlobalConfigTestBase.remove_path(
          expanduser(
              NiftyNetGlobalConfigTestBase.default_config_opts["home"]
          )
      )
  
imports: from glob import glob
  from os import remove, makedirs
  from os.path import expanduser, join, isdir, isfile
  from os.path import getmtime
  from shutil import rmtree
  from unittest import TestCase
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
label_desc: Use image node_id 4 for calling the NiftyNetGlobalConfigTestBase obj's underlying member method code with example usage: obj.setUp() without return types