code: def _make_readerlike(stream, byte_order=boc.native_code):
      class R:
          pass
  
      r = R()
      r.mat_stream = stream
      r.byte_order = byte_order
      r.struct_as_record = True
      r.uint16_codec = sys.getdefaultencoding()
      r.chars_as_strings = False
      r.mat_dtype = False
      r.squeeze_me = False
      return r
  
file_path: scipy/scipy/io/matlab/tests/test_mio5_utils.py
imports: import sys
  from io import BytesIO
  import numpy
  from numpy.testing import assert_array_equal, assert_equal, assert_
  from pytest import raises
  import scipy.io.matlab._byteordercodes
  import scipy.io.matlab._streams
  import scipy.io.matlab._mio5_params
  import scipy.io.matlab._mio5_utils
label_desc: Use image node_id 4 for calling a global function with example usage: _make_readerlike(stream, byte_order) and returns: r