class_docstr: Wrapper for tf.data.Dataset to permit extensions.
class_docstr_tok: ["Wrapper","for","tf.data.Dataset","to","permit","extensions","."]
code: def __getattr__(self, item):
      if item in self.__dict__:
          return self.__dict__[item]
  
      def call_and_update(*args, **kwargs):
          v = getattr(self.__dict__["data"], item)(*args, **kwargs)
          if isinstance(v, tf.data.Dataset):
              return self.__class__(
                  v, self.image_shape, parse_fn=self.parse_fn
              )
          return v
  
      return call_and_update
  
imports: import os
  from typing import Callable, Optional, Tuple, List, Iterable
  import numpy
  import tensorflow
  from absl import flags
label_desc: Use image node_id 6 for calling the DataSet obj's underlying member method code with example usage: obj.__getattr__(item) and returns: call_and_update, self, v, self