code: def test_mlist_errors(self):
      fid = open(self.example_file, "rb")
      hdr = self.header_class.from_fileobj(fid)
      hdr["num_frames"] = 6
      mlist = read_mlist(fid, hdr.endianness)
      fid.close()
      mlist = np.array(
          [
              [
                  1.68427540e07,
                  3.00000000e00,
                  1.20350000e04,
                  1.00000000e00,
              ],
              [
                  1.68427530e07,
                  1.20360000e04,
                  2.40680000e04,
                  1.00000000e00,
              ],
              [
                  1.68427550e07,
                  2.40690000e04,
                  3.61010000e04,
                  1.00000000e00,
              ],
              [
                  1.68427560e07,
                  3.61020000e04,
                  4.81340000e04,
                  1.00000000e00,
              ],
              [
                  1.68427570e07,
                  4.81350000e04,
                  6.01670000e04,
                  1.00000000e00,
              ],
              [
                  1.68427580e07,
                  6.01680000e04,
                  7.22000000e04,
                  1.00000000e00,
              ],
          ]
      )
      with suppress_warnings():  # STORED order
          series_framenumbers = get_series_framenumbers(mlist)
      # first frame stored was actually 2nd frame acquired
      assert series_framenumbers[0] == 2
      order = [
          series_framenumbers[x] for x in sorted(series_framenumbers)
      ]
      # true series order is [2,1,3,4,5,6], note counting starts at 1
      assert order == [2, 1, 3, 4, 5, 6]
      mlist[0, 0] = 0
      with suppress_warnings():
          frames_order = get_frame_order(mlist)
      neworder = [frames_order[x][0] for x in sorted(frames_order)]
      assert neworder == [1, 2, 3, 4, 5]
      with suppress_warnings():
          with pytest.raises(OSError):
              get_series_framenumbers(mlist)
  
imports: import os
  import warnings
  from pathlib import Path
  from unittest import TestCase
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  from ..ecat import EcatHeader, EcatImage, EcatSubHeader, get_frame_order, get_series_framenumbers, read_mlist
  from ..openers import Opener
  from ..testing import data_path, suppress_warnings
  from ..tmpdirs import InTemporaryDirectory
  from .None import test_wrapstruct
  from .test_fileslice import slicer_samples
label_desc: Use image node_id 2 for calling the TestEcatMlist obj's underlying member method code with example usage: obj.test_mlist_errors() without return types