code: def test_mask_images(
      images: Iterable[SpatialImage],
      mask: np.ndarray,
      masked_images: Iterable[np.ndarray],
  ) -> None:
      result = mask_images(images, mask)
      for result_image, expected_image in zip(result, masked_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 13 for calling a global function with example usage: test_mask_images(images, mask, masked_images) without return types