class_docstr: Reader for Mat 5 mat files
  Adds the following attribute to base class
  
  uint16_codec - char codec to use for uint16 char arrays
      (defaults to system default codec)
  
  Uses variable reader that has the following stardard interface (see
  abstract class in ``miobase``::
  
     __init__(self, file_reader)
     read_header(self)
     array_from_header(self)
  
  and added interface::
  
     set_stream(self, stream)
     read_full_tag(self)
docstr: Initializer for matlab 5 file format reader
  
  %(matstream_arg)s
  %(load_args)s
  %(struct_arg)s
  uint16_codec : {None, string}
      Set codec to use for uint16 char arrays (e.g., 'utf-8').
      Use system default codec if None
      
docstr_tok: ["Initializer","for","matlab","5","file","format","reader","%","(","matstream_arg",")","s","%","(","load_args",")","s","%","(","struct_arg",")","s","uint16_codec",":","{","None",",","string","}","Set","codec","to","use","for","uint16","char","arrays","(","e.g.",",","'utf-8","'",")",".","Use","system","default","codec","if","None"]
code: def __init__(
      self,
      mat_stream,
      byte_order=None,
      mat_dtype=False,
      squeeze_me=False,
      chars_as_strings=True,
      matlab_compatible=False,
      struct_as_record=True,
      verify_compressed_data_integrity=True,
      uint16_codec=None,
      simplify_cells=False,
  ):
      """Initializer for matlab 5 file format reader
  
      %(matstream_arg)s
      %(load_args)s
      %(struct_arg)s
      uint16_codec : {None, string}
          Set codec to use for uint16 char arrays (e.g., 'utf-8').
          Use system default codec if None
      """
      super().__init__(
          mat_stream,
          byte_order,
          mat_dtype,
          squeeze_me,
          chars_as_strings,
          matlab_compatible,
          struct_as_record,
          verify_compressed_data_integrity,
          simplify_cells,
      )
      # Set uint16 codec
      if not uint16_codec:
          uint16_codec = sys.getdefaultencoding()
      self.uint16_codec = uint16_codec
      # placeholders for readers - see initialize_read method
      self._file_reader = None
      self._matrix_reader = None
  
imports: import os
  import time
  import sys
  import zlib
  from io import BytesIO
  import warnings
  import numpy
  import scipy.sparse
  from .byteordercodes import native_code, swapped_code
  from .miobase import MatFileReader, docfiller, matdims, read_dtype, arr_to_chars, arr_dtype_number, MatWriteError, MatReadError, MatReadWarning
  from .mio5_utils import VarReader5
  from .mio5_params import MatlabObject, MatlabFunction, MDTYPES, NP_TO_MTYPES, NP_TO_MXTYPES, miCOMPRESSED, miMATRIX, miINT8, miUTF8, miUINT32, mxCELL_CLASS, mxSTRUCT_CLASS, mxOBJECT_CLASS, mxCHAR_CLASS, mxSPARSE_CLASS, mxDOUBLE_CLASS, mclass_info, mat_struct
  from .streams import ZlibInputStream
label_desc: Use image node_id 1 to create a new MatFile5Reader object from inherited base classes: MatFileReader with example: obj = MatFile5Reader(mat_stream, byte_order, mat_dtype, squeeze_me, chars_as_strings, matlab_compatible, struct_as_record, verify_compressed_data_integrity, uint16_codec, simplify_cells)