code: def find_plugins(gh_repo, info=False):
      """Returns the paths to the fiftyone YAML files for all plugins found in
      the given GitHub repository.
  
      Example usage::
  
          import fiftyone.plugins.utils as fopu
  
          # Search the entire repository
          plugins = fopu.find_plugins("https://github.com/voxel51/fiftyone-plugins")
          print(plugins)
  
          # Search a specific tree
          plugins = fopu.find_plugins("https://github.com/voxel51/fiftyone-plugins/tree/main/plugins/annotation")
          print(plugins)
  
      Args:
          gh_repo: a GitHub repository, identifier, or tree root. See
              :class:`GitHubRepository <fiftyone.utils.github.GitHubRepository>`
              for details
          info (False): whether to retrieve full plugin info for each plugin
              (True) or just return paths to the fiftyone YAML files (False)
  
      Returns:
          a list of paths to fiftyone YAML files or plugin info dicts
      """
      try:
          root = GitHubRepository.parse_url(gh_repo).get("path", None)
      except:
          root = None
  
      repo = GitHubRepository(gh_repo)
  
      paths = []
      for d in repo.list_repo_contents(recursive=True):
          path = d["path"]
          if root is not None and not path.startswith(root):
              continue
  
          if os.path.basename(path) in PLUGIN_METADATA_FILENAMES:
              paths.append(path)
  
      if not info:
          return paths
  
      tasks = [(gh_repo, path) for path in paths]
      return _get_all_plugin_info(tasks)
  
file_path: fiftyone/fiftyone/plugins/utils.py
imports: import logging
  import multiprocessing.dummy
  import os
  from bs4 import BeautifulSoup
  import yaml
  import fiftyone.core.utils
  from fiftyone.utils.github import GitHubRepository
  from fiftyone.plugins.core import PLUGIN_METADATA_FILENAMES
label_desc: Use image node_id 2 for calling a global function with example usage: find_plugins(gh_repo, info) and returns: _get_all_plugin_info, paths