code: def test_mask_image(
      spatial_image: SpatialImage,
      mask: np.ndarray,
      masked_data: np.ndarray,
  ) -> None:
      result = mask_image(spatial_image, mask)
      assert np.array_equal(result, masked_data)
  
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 10 for calling a global function with example usage: test_mask_image(spatial_image, mask, masked_data) without return types