parameters: (self, get_members_fn, prefix='', recurse=True)
docstring: r"""Helper method for yielding various names + members of modules.
docstring_summary: r"""Helper method for yielding various names + members of modules.
docstring_tokens: r Helper method for yielding various names + members of modules .
function: def _named_members(self, get_members_fn, prefix='', recurse=True):
          r"""Helper method for yielding various names + members of modules."""
          memo = set()
          modules = self.named_modules(prefix=prefix) if recurse else [(prefix, self)]
          for module_prefix, module in modules:
              members = get_members_fn(module)
              for k, v in members:
                  if v is None or v in memo:
                      continue
                  memo.add(v)
                  name = module_prefix + ('.' if module_prefix else '') + k
                  yield name, v
function_tokens: def _named_members ( self , get_members_fn , prefix = '' , recurse = True ) : memo = set ( ) modules = self . named_modules ( prefix = prefix ) if recurse else [ ( prefix , self ) ] for module_prefix , module in modules : members = get_members_fn ( module ) for k , v in members : if v is None or v in memo : continue memo . add ( v ) name = module_prefix + ( '.' if module_prefix else '' ) + k yield name , v