'Resets the pointer to first item.
If the record is opened with \'w\', this function will truncate the file to empty.
Example usage:
>>> record = mx.recordio.MXRecordIO(\'tmp.rec\', \'r\')
>>> for i in range(2):
...    item = record.read()
...    print(item)
record_0
record_1
>>> record.reset()  # Pointer is reset.
>>> print(record.read()) # Started reading from start again.
record_0
>>> record.close()'

def reset(self):

    self.close()
    self.open()
