class_docstr: FileIO class that exposes methods to read / write to / from files.
  
  The constructor takes the following arguments:
  name: [path-like object](https://docs.python.org/3/glossary.html#term-path-like-object)
    giving the pathname of the file to be opened.
  mode: one of `r`, `w`, `a`, `r+`, `w+`, `a+`. Append `b` for bytes mode.
  
  Can be used as an iterator to iterate over lines in the file.
  
  The default buffer size used for the BufferedInputStream used for reading
  the file line by line is 1024 * 512 bytes.
class_docstr_tok: ["FileIO","class","that","exposes","methods","to","read","\/","write","to","\/","from","files",".","The","constructor","takes","the","following","arguments",":","name",":","[","path-like","object","]","(","https",":","\/\/docs.python.org\/3\/glossary.html","#","term-path-like-object",")","giving","the","pathname","of","the","file","to","be","opened",".","mode",":","one","of","`","r","`",",","`","w","`",",","`","a","`",",","`","r+","`",",","`","w+","`",",","`","a+","`",".","Append","`","b","`","for","bytes","mode",".","Can","be","used","as","an","iterator","to","iterate","over","lines","in","the","file",".","The","default","buffer","size","used","for","the","BufferedInputStream","used","for","reading","the","file","line","by","line","is","1024","*","512","bytes","."]
docstr: Seeks to the offset in the file.
  
  Args:
    offset: The byte count relative to the whence argument.
    whence: Valid values for whence are:
      0: start of the file (default)
      1: relative to the current position of the file
      2: relative to the end of file. `offset` is usually negative.
docstr_tok: ["Seeks","to","the","offset","in","the","file",".","Args",":","offset",":","The","byte","count","relative","to","the","whence","argument",".","whence",":","Valid","values","for","whence","are",":","0",":","start","of","the","file","(","default",")","1",":","relative","to","the","current","position","of","the","file","2",":","relative","to","the","end","of","file",".","`","offset","`","is","usually","negative","."]
code: def seek(self, offset=None, whence=0, position=None):
      # TODO(jhseu): Delete later. Used to omit `position` from docs.
      # pylint: disable=g-doc-args
      """Seeks to the offset in the file.
  
      Args:
        offset: The byte count relative to the whence argument.
        whence: Valid values for whence are:
          0: start of the file (default)
          1: relative to the current position of the file
          2: relative to the end of file. `offset` is usually negative.
      """
      # pylint: enable=g-doc-args
      self._preread_check()
      # We needed to make offset a keyword argument for backwards-compatibility.
      # This check exists so that we can convert back to having offset be a
      # positional argument.
      # TODO(jhseu): Make `offset` a positional argument after `position` is
      # deleted.
      if offset is None and position is None:
          raise TypeError("seek(): offset argument required")
      if offset is not None and position is not None:
          raise TypeError(
              "seek(): offset and position may not be set "
              "simultaneously."
          )
  
      if position is not None:
          offset = position
  
      if whence == 0:
          pass
      elif whence == 1:
          offset += self.tell()
      elif whence == 2:
          offset += self.size()
      else:
          raise errors.InvalidArgumentError(
              None,
              None,
              "Invalid whence argument: {}. Valid values are 0, 1, or 2.".format(
                  whence
              ),
          )
      self._read_buf.seek(offset)
  
imports: import binascii
  import os
  from posixpath import join
  import uuid
  import six
  from tensorflow.python.framework import errors
  from tensorflow.python.lib.io import _pywrap_file_io
  from tensorflow.python.util import compat
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 10 for calling the FileIO obj's underlying member method code with example usage: obj.seek(offset, whence, position) without return types