code: def net_run_with_sys_argv(argv):
      # for gift-adelie
      os.environ["CUDA_VISIBLE_DEVICES"] = "0"
  
      SingletonApplication.clear()
      cache = sys.argv
      argv.extend(["--cuda_devices", "0"])
      sys.argv = argv
      niftynet_main()
      sys.argv = cache
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os, sys, unittest
  import tensorflow
  from niftynet.utilities.download import download
  from niftynet.utilities.niftynet_global_config import NiftyNetGlobalConfig
  from niftynet import main
  from niftynet.application.base_application import SingletonApplication
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling a global function with example usage: net_run_with_sys_argv(argv) without return types