class_docstr: This class is used to register function or :class:`functools.partial` class to a registry.
class_docstr_tok: ["This","class","is","used","to","register","function","or",":","class",":","`","functools.partial","`","class","to","a","registry","."]
code: def _find_matching_index(
      self, item: _REGISTERED_FUNCTION
  ) -> Optional[int]:
      for idx, fn in enumerate(self.functions):
          if all(fn[k] == item[k] for k in ("fn", "name", "metadata")):
              return idx
      return None
  
imports: import functools
  import inspect
  import itertools
  from typing import Any, Callable, Dict, List, Optional, Union
  from pytorch_lightning.utilities import rank_zero_info
  from flash.core.utilities.providers import Provider
label_desc: Use image node_id 9 for calling the FlashRegistry obj's underlying member method code with example usage: obj._find_matching_index(item) and returns: None, idx