parameters: (self, path, options=None)
docstring: Opens file `path` and creates a `TFRecordWriter` writing to it.
  
      Args:
        path: The path to the TFRecords file.
        options: (optional) A TFRecordOptions object.
  
      Raises:
        IOError: If `path` cannot be opened for writing.
docstring_summary: Opens file `path` and creates a `TFRecordWriter` writing to it.
docstring_tokens: Opens file path and creates a TFRecordWriter writing to it .
function: def __init__(self, path, options=None):
      """Opens file `path` and creates a `TFRecordWriter` writing to it.
  
      Args:
        path: The path to the TFRecords file.
        options: (optional) A TFRecordOptions object.
  
      Raises:
        IOError: If `path` cannot be opened for writing.
      """
      compression_type_string = ""
      if options:
        if options.compression_type == TFRecordCompressionType.ZLIB:
          compression_type_string = "ZLIB"
  
      self._writer = pywrap_tensorflow.PyRecordWriter_New(
          compat.as_bytes(path), compat.as_bytes(compression_type_string))
      if self._writer is None:
        raise IOError("Could not write to %s." % path)
function_tokens: def __init__ ( self , path , options = None ) : compression_type_string = "" if options : if options . compression_type == TFRecordCompressionType . ZLIB : compression_type_string = "ZLIB" self . _writer = pywrap_tensorflow . PyRecordWriter_New ( compat . as_bytes ( path ) , compat . as_bytes ( compression_type_string ) ) if self . _writer is None : raise IOError ( "Could not write to %s." % path )