code: def _namedchildren(link):
      if isinstance(link, chainer.Chain):
          for name in sorted(link._children):
              yield name, link.__dict__[name]
      elif isinstance(link, chainer.ChainList):
          for idx, child in enumerate(link._children):
              yield str(idx), child
  
label_desc: Use image node_id 1 for calling a global function with example usage: _namedchildren(link) without return types