class_docstr: Package index.
  
  Package index is a `Dict[DatasetName, DatasetPackage]` loaded from cache.
  It has an additional `.refresh()` method to update the local cache by
  querying the remote index (stored in `gs://tfds-data`).
  
  On disk, the package index is a simple list of datasets with their
  associated source:
  
  ```jsonl
  {"name": "kaggle:ds0", "source": "github://..."}
  {"name": "kaggle:ds1", "source": "github://..."}
  {"name": "tensorflow_graphics:shapenet", "source": "github://..."}
  [...]
  ```
class_docstr_tok: ["Package","index",".","Package","index","is","a","`","Dict","[","DatasetName",",","DatasetPackage","]","`","loaded","from","cache",".","It","has","an","additional","`",".refresh","(",")","`","method","to","update","the","local","cache","by","querying","the","remote","index","(","stored","in","`","gs",":","\/\/tfds-data","`",")",".","On","disk",",","the","package","index","is","a","simple","list","of","datasets","with","their","associated","source",":","``","`","jsonl","{","``","name","''",":","``","kaggle",":","ds0","''",",","``","source","''",":","``","github",":","\/\/","...","''","}","{","``","name","''",":","``","kaggle",":","ds1","''",",","``","source","''",":","``","github",":","\/\/","...","''","}","{","``","name","''",":","``","tensorflow_graphics",":","shapenet","''",",","``","source","''",":","``","github",":","\/\/","...","''","}","[","...","]","``","`"]
docstr: Update the index from the given `jsonl` content.
docstr_tok: ["Update","the","index","from","the","given","`","jsonl","`","content","."]
code: def _refresh_from_content(self, content: str) -> None:
      """Update the index from the given `jsonl` content."""
      dataset_packages = [
          DatasetPackage.from_json(json.loads(line))
          for line in content.splitlines()
          if line.strip()
      ]
      self.clear()
      self.update({src.name: src for src in dataset_packages})
  
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 _PackageIndex obj's underlying member method code with example usage: obj._refresh_from_content(content) without return types