code: def test_parcel_analysis_function():
      con_imgs, parcel_img = make_fake_data()
      parcel_mu_img, parcel_prob_img = parcel_analysis(
          con_imgs, parcel_img
      )
      assert_array_equal(parcel_mu_img.shape, SIZE)
      assert_array_equal(xyz_affine(parcel_mu_img), AFFINE)
      assert_array_equal(parcel_prob_img.shape, SIZE)
      assert_array_equal(xyz_affine(parcel_prob_img), AFFINE)
      assert parcel_prob_img.get_fdata().max() <= 1
      assert parcel_prob_img.get_fdata().min() >= 0
      outside = parcel_img.get_fdata() == 0
      assert_array_equal(parcel_mu_img.get_fdata()[outside], 0)
      assert_array_equal(parcel_prob_img.get_fdata()[outside], 0)
  
file_path: nipy/nipy/algorithms/group/tests/test_parcel_analysis.py
imports: import os
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ....core.image.image_spaces import make_xyz_image, xyz_affine
  from ..parcel_analysis import ParcelAnalysis, _smooth_image_pair, parcel_analysis
label_desc: Use image node_id 11 for calling a global function with example usage: test_parcel_analysis_function() without return types