code: def testAllArchitectures(self):
      for architecture, endpoint in DEFAULT_ENDPOINTS.items():
          self.config.architecture = architecture
          self.config.endpoint = endpoint
          model = TruncatedBaseNetwork(self.config)
          image = tf.placeholder(tf.float32, [1, 320, 320, 3])
          # This should not fail.
          out = model(image)
          self.assertEqual(out.get_shape()[:3], (1, 20, 20))
  
          # Free up memory for travis
          tf.reset_default_graph()
          gc.collect(generation=2)
  
file_path: luminoth/luminoth/models/base/truncated_base_network_test.py
imports: import easydict
  import tensorflow
  import gc
  from luminoth.models.base.truncated_base_network import TruncatedBaseNetwork, DEFAULT_ENDPOINTS
label_desc: Use image node_id 2 for calling the TruncatedBaseNetworkTest obj's underlying member method code with example usage: obj.testAllArchitectures() without return types