code: def names_resnets(k, pool_last=False):
      names = []
      for i in range(4):
          names += [
              "conv%d/block%d/out:0" % (i + 2, j + 1)
              for j in range(k[i])
          ]
          if pool_last is True and i < 3:
              names += ["pool%d/pool/AvgPool:0" % (i + 2)]
      return names
  
file_path: tensornets/tensornets/middles.py
imports: from __future__ import absolute_import
  from .version_utils import tf_equal_to
  from .version_utils import tf_later_than
label_desc: Use image node_id 2 for calling a global function with example usage: names_resnets(k, pool_last) and returns: names