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 = TFRecordOptions.get_compression_type_string(options)
  
      with errors.raise_exception_on_not_ok_status() as status:
        self._writer = pywrap_tensorflow.PyRecordWriter_New(
            compat.as_bytes(path), compat.as_bytes(compression_type), status)
function_tokens: def __init__ ( self , path , options = None ) : compression_type = TFRecordOptions . get_compression_type_string ( options ) with errors . raise_exception_on_not_ok_status ( ) as status : self . _writer = pywrap_tensorflow . PyRecordWriter_New ( compat . as_bytes ( path ) , compat . as_bytes ( compression_type ) , status )