docstr: Helper method for yielding various names + members of modules.
docstr_tok: ["Helper","method","for","yielding","various","names","+","members","of","modules","."]
code: def _named_members(
      self,
      get_members_fn,
      prefix="",
      recurse=True,
      remove_duplicate: bool = True,
  ):
      r"""Helper method for yielding various names + members of modules."""
      memo = set()
      modules = (
          self.named_modules(
              prefix=prefix, remove_duplicate=remove_duplicate
          )
          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 id(v) in memo
                  or not isinstance(v, Parameter)
              ):
                  continue
              if remove_duplicate:
                  memo.add(id(v))
              name = module_prefix + ("." if module_prefix else "") + k
              yield name, v
  
imports: import ivy
  from collections import OrderedDict
  from typing import Any, Dict, Iterator, List, Optional, Set, Tuple
  from ivy.functional.frontends.torch.nn.parameter import Parameter
  from ivy.functional.frontends.torch.tensor import Tensor
label_desc: Use image node_id 13 for calling the Module obj's underlying member method code with example usage: obj._named_members(get_members_fn, prefix, recurse, remove_duplicate) without return types