code: def test_detection_basics(net, shape, stem):
      # TODO: Once the roi-pooling dependency is removed,
      # FasterRCNN-related tests should be added.
      with tf.Graph().as_default():
          inputs = tf.placeholder(tf.float32, [None] + list(shape))
          model = net(inputs, stem, is_training=False)
          assert isinstance(model, tf.Tensor)
  
          x = (
              np.random.random((1, 733, 490, 3)).astype(np.float32)
              * 255
          )
  
          with tf.Session() as sess:
              model.init()
              y = model.eval({inputs: model.preprocess(x)})
  
file_path: tensornets/tests/basics_test.py
imports: from __future__ import absolute_import
  import numpy
  import tensorflow
  import tensornets
  import os
  import pytest
  import random
  from tensornets.middles import direct
  from distutils.version import LooseVersion
label_desc: Use image node_id 2 for calling a global function with example usage: test_detection_basics(net, shape, stem) without return types