code: def test_lowlevel():
      # Some tests from low level implementation that is not covered
      # by using the plugin itself.
      _swf = imageio.plugins.swf.load_lib()
      tag = _swf.Tag()
      with pytest.raises(NotImplementedError):
          tag.process_tag()
      assert tag.make_matrix_record() == "00000000"
      assert tag.make_matrix_record(scale_xy=(1, 1))
      assert tag.make_matrix_record(rot_xy=(1, 1))
      assert tag.make_matrix_record(trans_xy=(1, 1))
  
      SetBackgroundTag = _swf.SetBackgroundTag
      assert (
          SetBackgroundTag(1, 2, 3).rgb
          == SetBackgroundTag((1, 2, 3)).rgb
      )
  
      tag = _swf.ShapeTag(0, (0, 0), (1, 1))
      assert tag.make_style_change_record(1, 1, (1, 1))
      assert tag.make_style_change_record()
      assert (
          tag.make_straight_edge_record(2, 3).tobytes()
          == tag.make_straight_edge_record((2, 3)).tobytes()
      )
  
file_path: imageio/tests/test_swf.py
imports: import numpy
  import pytest
  import imageio.v2
  import imageio.plugins
  from imageio import core
  from imageio.core import IS_PYPY
  from conftest import deprecated_test
label_desc: Use image node_id 6 for calling a global function with example usage: test_lowlevel() without return types