code: def test_out(in_dtype, out_dtype):
      image = test_image.astype(in_dtype, copy=True)
      expected_out = np.empty_like(test_image, dtype=out_dtype)
  
      if out_dtype != bool:
          # object with only 1 label will warn on non-bool output dtype
          exp_warn = ["Only one label was provided"]
      else:
          exp_warn = []
  
      with expected_warnings(exp_warn):
          out = remove_small_objects(
              image, min_size=6, out=expected_out
          )
  
      assert out is expected_out
  
imports: import numpy
  import pytest
  from skimage.morphology import remove_small_objects, remove_small_holes
  from skimage._shared import testing
  from skimage._shared.testing import assert_array_equal, assert_equal
  from skimage._shared._warnings import expected_warnings
label_desc: Use image node_id 4 for calling a global function with example usage: test_out(in_dtype, out_dtype) without return types