code: def dense(x, blocks, scope=None):
      for i in range(blocks):
          x = block(x, scope="block%d" % (i + 1))
      return x
  
file_path: tensornets/tensornets/densenets.py
imports: from __future__ import absolute_import
  import tensorflow
  from .layers import avg_pool2d
  from .layers import batch_norm
  from .layers import conv2d
  from .layers import fc
  from .layers import max_pool2d
  from .layers import convbnrelu
  from .ops import *
  from .utils import pad_info
  from .utils import set_args
  from .utils import var_scope
label_desc: Use image node_id 6 for calling a global function with example usage: dense(x, blocks, scope) and returns: x