class_docstr: Defines interface any TFDS logger must implement.
  
  Registered loggers methods are called on TFDS events, synchronously, from the
  same thread the call was made, in sequence, and in registration order.
  Exceptions are *NOT* caught.
class_docstr_tok: ["Defines","interface","any","TFDS","logger","must","implement",".","Registered","loggers","methods","are","called","on","TFDS","events",",","synchronously",",","from","the","same","thread","the","call","was","made",",","in","sequence",",","and","in","registration","order",".","Exceptions","are","*","NOT","*","caught","."]
docstr: Callback called when user calls `dataset_builder.as_data_source(...)`.
docstr_tok: ["Callback","called","when","user","calls","`","dataset_builder.as_data_source","(","...",")","`","."]
code: def as_data_source(
      self,
      *,
      metadata: call_metadata.CallMetadata,
      name: str,
      config_name: Optional[str],
      version: str,
      data_path: str,
      split: Optional[type_utils.Tree[splits_lib.SplitArg]],
      decoders: Optional[TreeDict[decode.partial_decode.DecoderArg]],
  ):
      """Callback called when user calls `dataset_builder.as_data_source(...)`."""
      pass
  
imports: from typing import Any, Dict, Optional, Union
  from tensorflow_datasets.core import decode
  from tensorflow_datasets.core import download
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core.logging import call_metadata
  from tensorflow_datasets.core.utils import read_config
  from tensorflow_datasets.core.utils import type_utils
label_desc: Use image node_id 13 for calling the Logger obj's underlying member method code with example usage: obj.as_data_source() without return types