code: def test_create_second_level_design():
      subjects_label = [
          "02",
          "01",
      ]  # change order to test right output order
      regressors = [["01", 0.1], ["02", 0.75]]
      regressors = pd.DataFrame(
          regressors, columns=["subject_label", "f1"]
      )
      design = make_second_level_design_matrix(
          subjects_label, regressors
      )
      expected_design = np.array([[0.75, 1], [0.1, 1]])
      assert_array_equal(design, expected_design)
      assert len(design.columns) == 2
      assert len(design) == 2
  
imports: from os import path
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_array_equal
  from nilearn._utils.data_gen import basic_paradigm
  from nilearn.glm.first_level.design_matrix import _convolve_regressors, check_design_matrix, create_cosine_drift, make_first_level_design_matrix, make_second_level_design_matrix
  from ._testing import block_paradigm, design_with_negative_onsets, modulated_block_paradigm, modulated_event_paradigm, spm_paradigm
label_desc: Use image node_id 24 for calling a global function with example usage: test_create_second_level_design() without return types