class_docstr: Wrapper for tf.data.Dataset to permit extensions.
class_docstr_tok: ["Wrapper","for","tf.data.Dataset","to","permit","extensions","."]
code: def parse(self, para=None):
      if not self.parse_fn:
          return self
      para = para or FLAGS.para_parse
      if self.image_shape:
          return self.map(
              lambda index, record: self.parse_fn(
                  index, record, self.image_shape
              ),
              para,
          )
      return self.map(
          lambda index, record: self.parse_fn(index, record), para
      )
  
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 10 for calling the DataSet obj's underlying member method code with example usage: obj.parse(para) and returns: self, self, self