code: def test_signal_size(tmp_path, dd=data_dict):
      dd = dd.copy()
  
      # Change it to only use ROI A
      dd["different_ROIs"] = False
  
      # Make the signal large
      dd["scale_percentage"] = 100
  
      # Run the simulation
      gen.generate_data(str(tmp_path), dd)
  
      # Load in the ROI masks
      ROI_A = dd["ROI_A_file"]
      ROI_B = dd["ROI_B_file"]
  
      # Load in the data just simulated
      ROI_A_mean = []
      ROI_B_mean = []
      for TR_counter in range(dd["numTRs"]):
          # Load the data
          vol_name = "rt_%03d.npy" % TR_counter
          vol = np.load(tmp_path / vol_name)
  
          # Mask the data
          ROI_A_mean += [np.mean(vol[ROI_A == 1])]
          ROI_B_mean += [np.mean(vol[ROI_B == 1])]
  
      assert np.std(ROI_A_mean) > np.std(
          ROI_B_mean
      ), "Signal not scaling"
  
file_path: brainiak/tests/utils/test_fmrisim_real_time.py
imports: import numpy
  from brainiak.utils import fmrisim_real_time_generator
  import pytest
  import os
  import time
  import glob
  from pkg_resources import resource_stream
  from typing import Dict
  from nibabel.nifti1 import Nifti1Image
  import gzip
label_desc: Use image node_id 2 for calling a global function with example usage: test_signal_size(tmp_path, dd) without return types