code: def test_calculate_cluster_measures(
      test_arr4d, bin_struct, two_sided_test, true_size, true_mass
  ):
      """Test calculate_cluster_measures.
  
      true_mass : (8 vox * 5 intensity) - (8 vox * 0.001 thresh)
      """
      test_size, test_mass = _utils.calculate_cluster_measures(
          test_arr4d,
          threshold=0.001,
          bin_struct=bin_struct,
          two_sided_test=two_sided_test,
      )
  
      assert test_size[0] == true_size
      assert test_mass[0] == true_mass
  
imports: import math
  import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from scipy.ndimage import generate_binary_structure
  from nilearn.mass_univariate import _utils
  from nilearn.mass_univariate.tests._testing import get_tvalue_with_alternative_library
label_desc: Use image node_id 10 for calling a global function with example usage: test_calculate_cluster_measures(test_arr4d, bin_struct, two_sided_test, true_size, true_mass) without return types