class_docstr: Dataset register based on a list of remotely stored datasets definitions.
  
  Package register is similar to a dataset package manager. It contains a
  package index containing the list of all registered datasets with their
  associated location.
  When a specific dataset is requested, `PackageRegister` will download
  and cache the original source code locally.
  
  Usage:
  
  ```python
  register = PackageRegister(path='/path/to/datasets-source-list.jsonl')
  
  # List all registered datasets: ['kaggle:ds0', 'kaggle:ds1',...]
  register.list_builders()
  
  # Load a specific dataset
  builder = register.builder('tensorflow_graphics:shapenet')
  ```
class_docstr_tok: ["Dataset","register","based","on","a","list","of","remotely","stored","datasets","definitions",".","Package","register","is","similar","to","a","dataset","package","manager",".","It","contains","a","package","index","containing","the","list","of","all","registered","datasets","with","their","associated","location",".","When","a","specific","dataset","is","requested",",","`","PackageRegister","`","will","download","and","cache","the","original","source","code","locally",".","Usage",":","``","`","python","register","=","PackageRegister","(","path='\/path\/to\/datasets-source-list.jsonl","'",")","#","List","all","registered","datasets",":","[","'kaggle",":","ds0","'",",","'kaggle",":","ds1","'",",","...","]","register.list_builders","(",")","#","Load","a","specific","dataset","builder","=","register.builder","(","'tensorflow_graphics",":","shapenet","'",")","``","`"]
docstr: `Dict[DatasetName, DatasetPackage]` containg the community datasets.
docstr_tok: ["`","Dict","[","DatasetName",",","DatasetPackage","]","`","containg","the","community","datasets","."]
code: def _package_index(self) -> _PackageIndex:
      """`Dict[DatasetName, DatasetPackage]` containg the community datasets."""
      # Use property to lazy-initialize the cache (and create the tmp dir) only
      # if it is used.
      return _PackageIndex(self._path)
  
imports: import collections
  import dataclasses
  import datetime
  import functools
  import hashlib
  import json
  import tempfile
  from typing import Any, Iterator, List, Optional, Type
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.community import cache
  from tensorflow_datasets.core.community import dataset_sources
  from tensorflow_datasets.core.community import load
  from tensorflow_datasets.core.community import register_base
  from tensorflow_datasets.core.download import checksums
  from tensorflow_datasets.core.utils import gcs_utils
label_desc: Use image node_id 2 for calling the PackageRegister obj's underlying member method code with example usage: obj._package_index() and returns: _PackageIndex