original_docstring: 
      This function fetch an instance from 
      a tf.data.Dataset object 
      
docstring: This function fetch an instance from
  a tf.data.Dataset object
docstring_tokens: This function fetch an instance from a tf . data . Dataset object
code: def dataset_checker(dataset):
      '''
      This function fetch an instance from 
      a tf.data.Dataset object 
      '''
      if tf.__version__[0].split('.')[0] == '2':
          iterator = iter(dataset)
          return next(iterator)
      else:
          iterator = dataset.make_one_shot_iterator()
          one_element = iterator.get_next()
          with tf.Session() as sess:
              value = sess.run(one_element)
          return value
code_tokens: def dataset_checker ( dataset ) : if tf . __version__ [ 0 ] . split ( '.' ) [ 0 ] == '2' : iterator = iter ( dataset ) return next ( iterator ) else : iterator = dataset . make_one_shot_iterator ( ) one_element = iterator . get_next ( ) with tf . Session ( ) as sess : value = sess . run ( one_element ) return value
short_docstring: This function fetch an instance from
  a tf.data.Dataset object
short_docstring_tokens: This function fetch an instance from a tf . data . Dataset object
comment: '''
      This function fetch an instance from 
      a tf.data.Dataset object 
      '''