code: def multimasked_images(masked_data) -> Iterable[Iterable[np.ndarray]]:
      masked_data_2 = np.concatenate(([[2]], masked_data[1:, :]))
      return [
          [
              masked_data,
              np.concatenate(([[0]], masked_data)),
              masked_data[:-1, :],
          ],
          [
              masked_data_2,
              np.concatenate((np.array([[0]]), masked_data_2)),
              masked_data_2[:-1, :],
          ],
      ]
  
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 8 for calling a global function with example usage: multimasked_images(masked_data) and returns: list