code: def test_save_image_tiff_uint8(tmpdir, image, module, workspace):
      directory = str(tmpdir.mkdir("images"))
  
      module.save_image_or_figure.value = (
          cellprofiler.modules.saveimages.IF_IMAGE
      )
  
      module.image_name.value = "example"
  
      module.file_name_method.value = (
          cellprofiler.modules.saveimages.FN_SINGLE_NAME
      )
  
      module.single_file_name.value = "example"
  
      module.pathname.value = "{}|{}".format(
          cellprofiler_core.preferences.ABSOLUTE_FOLDER_NAME, directory
      )
  
      module.file_format.value = cellprofiler.modules.saveimages.FF_TIFF
  
      module.bit_depth.value = (
          cellprofiler.modules.saveimages.BIT_DEPTH_8
      )
  
      module.run(workspace)
  
      assert os.path.exists(os.path.join(directory, "example.tiff"))
  
      data = skimage.io.imread(os.path.join(directory, "example.tiff"))
  
      assert data.dtype == numpy.uint8
  
      numpy.testing.assert_array_equal(
          data, skimage.util.img_as_ubyte(image.pixel_data)
      )
  
imports: import io
  import os.path
  import h5py
  import numpy
  import numpy.random
  import numpy.testing
  import pytest
  import skimage.data
  import skimage.util
  import cellprofiler_core.image
  import cellprofiler.modules.saveimages
  import cellprofiler_core.pipeline
  import cellprofiler_core.setting
  import cellprofiler_core.preferences
label_desc: Use image node_id 6 for calling a global function with example usage: test_save_image_tiff_uint8(tmpdir, image, module, workspace) without return types