class_docstr: Reads/writes `RecordIO` data format, supporting sequential read and write.
  
  Examples
  ---------
  >>> record = mx.recordio.MXRecordIO('tmp.rec', 'w')
  <mxnet.recordio.MXRecordIO object at 0x10ef40ed0>
  >>> for i in range(5):
  ...    record.write('record_%d'%i)
  >>> record.close()
  >>> record = mx.recordio.MXRecordIO('tmp.rec', 'r')
  >>> for i in range(5):
  ...    item = record.read()
  ...    print(item)
  record_0
  record_1
  record_2
  record_3
  record_4
  >>> record.close()
  
  Parameters
  ----------
  uri : string
      Path to the record file.
  flag : string
      'w' for write or 'r' for read.
docstr: Resets the pointer to first item.
  
  If the record is opened with 'w', this function will truncate the file to empty.
  
  Examples
  ---------
  >>> 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()
docstr_tok: ["Resets","the","pointer","to","first","item",".","If","the","record","is","opened","with","'","w","'",",","this","function","will","truncate","the","file","to","empty",".","Examples","--","--","--","--","-",">",">",">","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","(",")"]
code: def reset(self):
      """Resets the pointer to first item.
  
      If the record is opened with 'w', this function will truncate the file to empty.
  
      Examples
      ---------
      >>> 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()
      """
      self.close()
      self.open()
  
imports: from collections import namedtuple
  from multiprocessing import current_process
  import ctypes
  import struct
  import numbers
  import numpy
  from .base import _LIB
  from .base import RecordIOHandle
  from .base import check_call
  from .base import c_str
label_desc: Use image node_id 8 for calling the MXRecordIO obj's underlying member method code with example usage: obj.reset() without return types