code: def test_ReadDesign():
      from brainiak.utils.utils import ReadDesign
      import numpy as np
      import os.path
  
      file_path = os.path.join(
          os.path.dirname(__file__), "example_design.1D"
      )
      design = ReadDesign(
          fname=file_path, include_orth=False, include_pols=False
      )
      assert design, "Failed to read design matrix"
      assert design.reg_nuisance is None, (
          "Nuiance regressor is not None when include_orth and include_pols are"
          " both set to False"
      )
      read = ReadDesign()
      assert read, "Failed to initialize an instance of the class"
      design = ReadDesign(
          fname=file_path, include_orth=True, include_pols=True
      )
      assert (
          np.size(design.cols_nuisance) == 10
      ), "Mistake in counting the number of nuiance regressors"
      assert (
          np.size(design.cols_task) == 17
      ), "Mistake in counting the number of task conditions"
      assert (
          np.shape(design.reg_nuisance)[0]
          == np.shape(design.design_task)[0]
      ), (
          "The number of time points in nuiance regressor does not match"
          " that of task response"
      )
  
file_path: brainiak/tests/utils/test_utils.py
imports: import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_ReadDesign() without return types