code: def _find_community_ds_packages(
      config_path: tfds.core.Path,
  ) -> List[DatasetPackage]:
      """Find all namepaces/dataset from the config.
  
      Config should contain the instructions in the following format:
  
      ```
      [Namespace]
      <namespace0> = 'github://<owner0>/<github_repo0>/tree/<path/to/dataset/dir>'
      <namespace1> = 'gs://<bucket>/<datasets>/'
      ```
  
      Args:
        config_path: Path to the config file containing lookup instructions.
  
      Returns:
        ds_packages: list of all found datasets.
      """
      config = toml.load(config_path)
  
      all_packages = []
      for namespace, src_code_path in tqdm.tqdm(
          config["Namespaces"].items()
      ):
          tqdm.tqdm.write(
              f"Searching datasets for {namespace}: {src_code_path}"
          )
          for (
              pkg
          ) in tfds.core.community.register_package.list_ds_packages_for_namespace(
              namespace=namespace, path=tfds.core.Path(src_code_path)
          ):
              tqdm.tqdm.write(str(pkg.name))
              all_packages.append(pkg)
  
      return sorted(all_packages, key=lambda package: package.name)
  
file_path: datasets/tensorflow_datasets/scripts/deployment/export_community_datasets.py
imports: import json
  from typing import List
  from absl import app
  import tensorflow_datasets
  import toml
  import tqdm
label_desc: Use image node_id 3 for calling a global function with example usage: _find_community_ds_packages(config_path) and returns: sorted