code: def _namedpersistents(model):
      assert isinstance(model, chainer.Link)
  
      for lname, link in model.namedlinks():
          for pname in link._persistent:
              yield lname + "/" + pname, link.__dict__[pname]
  
imports: import chainer
  import chainer.training.extension
label_desc: Use image node_id 1 for calling a global function with example usage: _namedpersistents(model) without return types