code: def _save_community_ds_packages(
      file_path: tfds.core.Path, ds_packages: List[DatasetPackage]
  ) -> None:
      """Save all loaded datasets in the package index.
  
      Saved file will have the following `.jsonl` format:
  
      ```jsonl
      {'name': 'namespace0:dataset0', 'source': 'github://...'}
      {'name': 'namespace0:dataset0', 'source': 'github://...'}
      ...
      ```
  
      Args:
        file_path: `.jsonl` destination to which save the dataset
        ds_packages: Dataset paths to save
      """
      pkg_json = [json.dumps(pkg.to_json()) for pkg in ds_packages]
      file_path.write_text("\n".join(pkg_json) + "\n")
  
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 4 for calling a global function with example usage: _save_community_ds_packages(file_path, ds_packages) without return types