code: def test_multimask_images(
      images: Iterable[SpatialImage],
      masks: Sequence[np.ndarray],
      multimasked_images: Iterable[Iterable[np.ndarray]],
  ) -> None:
      result = multimask_images(images, masks)
      for result_images, expected_images in zip(
          result, multimasked_images
      ):
          for result_image, expected_image in zip(
              result_images, expected_images
          ):
              assert np.array_equal(result_image, expected_image)
  
imports: from typing import Iterable, Sequence
  import numpy
  import pytest
  from nibabel.nifti1 import Nifti1Pair
  from nibabel.spatialimages import SpatialImage
  from brainiak.image import mask_image, mask_images, MaskedMultiSubjectData, multimask_images, SingleConditionSpec
label_desc: Use image node_id 12 for calling a global function with example usage: test_multimask_images(images, masks, multimasked_images) without return types