code: def test_planarconfig(tmp_path):
      filename = tmp_path / "test.tiff"
      expected = np.ones((3, 10, 10), np.uint8) * 2
  
      iio.imwrite(filename, expected, planarconfig="SEPARATE")
  
      # assert planar config
      with tifffile.TiffFile(filename) as tif:
          if tuple(int(x) for x in tifffile.__version__.split(".")) <= (
              2021,
              11,
              2,
          ):
              assert tif.series[0].pages[0].tags[284].value == 2
          else:
              assert tif.series[0].dims == ("sample", "height", "width")
  
imports: import datetime
  import numpy
  import pytest
  import io
  from copy import deepcopy
  import struct
  import imageio.v3
  from imageio.config import known_plugins, known_extensions
label_desc: Use image node_id 6 for calling a global function with example usage: test_planarconfig(tmp_path) without return types