class_docstr: Creates a `Dataset` comprising lines from one or more text files.
  
  The `tf.data.TextLineDataset` loads text from text files and creates a dataset
  where each line of the files becomes an element of the dataset.
  
  For example, suppose we have 2 files "text_lines0.txt" and "text_lines1.txt"
  with the following lines:
  
  >>> with open('/tmp/text_lines0.txt', 'w') as f:
  ...   f.write('the cow\n')
  ...   f.write('jumped over\n')
  ...   f.write('the moon\n')
  >>> with open('/tmp/text_lines1.txt', 'w') as f:
  ...   f.write('jack and jill\n')
  ...   f.write('went up\n')
  ...   f.write('the hill\n')
  
  We can construct a TextLineDataset from them as follows:
  
  >>> dataset = tf.data.TextLineDataset(['/tmp/text_lines0.txt',
  ...                                    '/tmp/text_lines1.txt'])
  
  The elements of the dataset are expected to be:
  
  >>> for element in dataset.as_numpy_iterator():
  ...   print(element)
  b'the cow'
  b'jumped over'
  b'the moon'
  b'jack and jill'
  b'went up'
  b'the hill'
class_docstr_tok: ["Creates","a","`","Dataset","`","comprising","lines","from","one","or","more","text","files",".","The","`","tf.data.TextLineDataset","`","loads","text","from","text","files","and","creates","a","dataset","where","each","line","of","the","files","becomes","an","element","of","the","dataset",".","For","example",",","suppose","we","have","2","files","``","text_lines0.txt","''","and","``","text_lines1.txt","''","with","the","following","lines",":",">",">",">","with","open","(","'\/tmp\/text_lines0.txt","'",",","'","w","'",")","as","f",":","...","f.write","(","'the","cow\\n","'",")","...","f.write","(","'jumped","over\\n","'",")","...","f.write","(","'the","moon\\n","'",")",">",">",">","with","open","(","'\/tmp\/text_lines1.txt","'",",","'","w","'",")","as","f",":","...","f.write","(","'jack","and","jill\\n","'",")","...","f.write","(","'went","up\\n","'",")","...","f.write","(","'the","hill\\n","'",")","We","can","construct","a","TextLineDataset","from","them","as","follows",":",">",">",">","dataset","=","tf.data.TextLineDataset","(","[","'\/tmp\/text_lines0.txt","'",",","...","'\/tmp\/text_lines1.txt","'","]",")","The","elements","of","the","dataset","are","expected","to","be",":",">",">",">","for","element","in","dataset.as_numpy_iterator","(",")",":","...","print","(","element",")","b'the","cow'","b'jumped","over'","b'the","moon'","b'jack","and","jill'","b'went","up'","b'the","hill","'"]
code: def element_spec(self):
      return tensor_spec.TensorSpec([], dtypes.string)
  
imports: import os
  from tensorflow.python import tf2
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import from_tensor_slices_op
  from tensorflow.python.data.ops import structured_function
  from tensorflow.python.data.util import convert
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_dataset_ops
  from tensorflow.python.ops import gen_experimental_dataset_ops
  from tensorflow.python.types import data
  from tensorflow.python.util import nest
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 2 for calling the TextLineDatasetV2 obj's underlying member method code with example usage: obj.element_spec() and returns: tensor_spec