code: def test_inference(self):
      net_run_with_sys_argv(
          [
              "net_run",
              "-a",
              self.application,
              "-c",
              self.configA,
              "inference",
          ]
      )
      net_run_with_sys_argv(
          [
              "net_run",
              "-a",
              self.application,
              "-c",
              self.configC,
              "inference",
          ]
      )
      net_run_with_sys_argv(
          [
              "net_run",
              "-a",
              self.application,
              "-c",
              self.configS,
              "inference",
          ]
      )
      for eo in self.expected_outputs:
          output = os.path.join(MODEL_HOME, "models", self.location, eo)
          self.assertTrue(
              os.path.exists(output),
              "Expected {} to exist.".format(output),
          )
  
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 2 for calling the AnisotropicNetsBratsChallengeModelZooTest obj's underlying member method code with example usage: obj.test_inference() without return types