class_docstr: TIFFIODataset
code: def __init__(self, filename, internal=True):
      if not internal:
          raise ValueError(
              "TIFFIODataset constructor is private; please use one "
              "of the factory methods instead (e.g., "
              "IODataset.from_pcap())"
          )
      with tf.name_scope("TIFFIODataset"):
          content = tf.io.read_file(filename)
          _, dtype = core_ops.io_decode_tiff_info(content)
          # use dtype's rank to find out the number of elements
          dataset = tf.data.Dataset.range(
              tf.cast(tf.shape(dtype)[0], tf.int64)
          )
          dataset = dataset.map(
              lambda index: core_ops.io_decode_tiff(content, index)
          )
  
          self._dataset = dataset
          self._content = content
          super().__init__(self._dataset._variant_tensor)
  
imports: import tensorflow
  from tensorflow_io.python.ops import core_ops
label_desc: Use image node_id 1 to create a new TIFFIODataset object from inherited base classes: tf.data with example: obj = TIFFIODataset(filename, internal)