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","."]
docstr: This function is used to gather matches from the registry:
  
  Args:
      key: Name of the registered function.
      with_metadata: Whether to include the associated metadata in the return value.
      strict: Whether to return all matches or just one.
      metadata: Metadata used to filter against existing registry item's metadata.
docstr_tok: ["This","function","is","used","to","gather","matches","from","the","registry",":","Args",":","key",":","Name","of","the","registered","function",".","with_metadata",":","Whether","to","include","the","associated","metadata","in","the","return","value",".","strict",":","Whether","to","return","all","matches","or","just","one",".","metadata",":","Metadata","used","to","filter","against","existing","registry","item","'s","metadata","."]
code: def get(
      self,
      key: str,
      with_metadata: bool = False,
      strict: bool = True,
      **metadata,
  ) -> Union[
      Callable,
      _REGISTERED_FUNCTION,
      List[_REGISTERED_FUNCTION],
      List[Callable],
  ]:
      """This function is used to gather matches from the registry:
  
      Args:
          key: Name of the registered function.
          with_metadata: Whether to include the associated metadata in the return value.
          strict: Whether to return all matches or just one.
          metadata: Metadata used to filter against existing registry item's metadata.
      """
      matches = [e for e in self.functions if key == e["name"]]
      if not matches:
          raise KeyError(
              f"Key: {key} is not in {type(self).__name__}. Available keys: {self.available_keys()}"
          )
  
      if metadata:
          matches = [
              m
              for m in matches
              if metadata.items() <= m["metadata"].items()
          ]
          if not matches:
              raise KeyError(
                  "Found no matches that fit your metadata criteria. Try removing some metadata"
              )
  
      matches = [e if with_metadata else e["fn"] for e in matches]
      return matches[0] if strict else matches
  
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 6 for calling the FlashRegistry obj's underlying member method code with example usage: obj.get(key, with_metadata, strict) and returns: unknown