code: def minimodel():
      def inner(input=None, shape=(16, 16, 3)):
          """Constructs a tiny graph containing one each of a typical input
          (tf.placegholder), variable and typical output (softmax) nodes.
          """
          if input is None:
              input = tf.placeholder(
                  tf.float32, shape=shape, name="input"
              )
          w = tf.Variable(0.1, name="variable")
          logits = tf.reduce_mean(w * input, name="output", axis=(0, 1))
          return tf.nn.softmax(logits)
  
      return inner
  
imports: import pytest
  import tensorflow
label_desc: Use image node_id 1 for calling a global function with example usage: minimodel() and returns: inner, tf