code: def test_from_masked_images(
      self, masked_images, masked_multi_subject_data
  ):
      result = MaskedMultiSubjectData.from_masked_images(
          masked_images, len(masked_images)
      )
      assert np.array_equal(
          np.moveaxis(result, 1, 0), masked_multi_subject_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 1 for calling the TestMaskedMultiSubjectData obj's underlying member method code with example usage: obj.test_from_masked_images(masked_images, masked_multi_subject_data) without return types