code: def capsulenet_mnist(
      x, is_training=False, classes=10, scope=None, reuse=None
  ):
      x = conv(x, 256, 9, stride=1, scope="conv1")
      x = primary(x, 32, 8, 9, stride=2, scope="primary")
      x = digit(x, 10, 16, scope="digit")
      return x
  
file_path: tensornets/tensornets/capsulenets.py
imports: from __future__ import absolute_import
  import numpy
  import tensorflow
  from .layers import batch_norm
  from .layers import conv2d
  from .layers import convrelu
  from .ops import *
  from .utils import ops_to_outputs
  from .utils import set_args
  from .utils import var_scope
label_desc: Use image node_id 5 for calling a global function with example usage: capsulenet_mnist(x, is_training, classes, scope, reuse) and returns: x