class_docstr: Module loaded lazily during first call.
class_docstr_tok: ["Module","loaded","lazily","during","first","call","."]
docstr: Factory to cache all instances of module.
  
  Note: The cache is global to all instances of the
  `lazy_imports` context manager.
  
  Args:
    **kwargs: Init kwargs
  
  Returns:
    New object
docstr_tok: ["Factory","to","cache","all","instances","of","module",".","Note",":","The","cache","is","global","to","all","instances","of","the","`","lazy_imports","`","context","manager",".","Args",":","*","*","kwargs",":","Init","kwargs","Returns",":","New","object"]
code: def from_cache(cls, **kwargs):
      """Factory to cache all instances of module.
  
      Note: The cache is global to all instances of the
      `lazy_imports` context manager.
  
      Args:
        **kwargs: Init kwargs
  
      Returns:
        New object
      """
      return cls(**kwargs)
  
file_path: datasets/tensorflow_datasets/core/utils/lazy_imports_utils.py
imports: from __future__ import annotations
  import builtins
  import contextlib
  import dataclasses
  import functools
  import importlib
  import time
  import types
  from typing import Any, Callable, Iterator, Optional, Tuple
label_desc: Use image node_id 1 for calling the LazyModule obj's underlying member method code with example usage: obj.from_cache(cls) and returns: cls