code: def test_auto_response_msmt(rng):
      gtab, data, _, _ = get_test_data(rng)
  
      with warnings.catch_warnings(record=True) as w:
          (
              response_auto_wm,
              response_auto_gm,
              response_auto_csf,
          ) = auto_response_msmt(
              gtab,
              data,
              tol=20,
              roi_center=None,
              roi_radii=(1, 1, 0),
              wm_fa_thr=0.7,
              gm_fa_thr=0.3,
              csf_fa_thr=0.15,
              gm_md_thr=0.001,
              csf_md_thr=0.0032,
          )
  
          npt.assert_(issubclass(w[0].category, UserWarning))
          npt.assert_(
              """Some b-values are higher than 1200.
          The DTI fit might be affected. It is advised to use
          mask_for_response_msmt with bvalues lower than 1200, followed by
          response_from_mask_msmt with all bvalues to overcome this."""
              in str(w[0].message)
          )
  
          mask_wm, mask_gm, mask_csf = mask_for_response_msmt(
              gtab,
              data,
              roi_center=None,
              roi_radii=(1, 1, 0),
              wm_fa_thr=0.7,
              gm_fa_thr=0.3,
              csf_fa_thr=0.15,
              gm_md_thr=0.001,
              csf_md_thr=0.0032,
          )
  
          (
              response_from_mask_wm,
              response_from_mask_gm,
              response_from_mask_csf,
          ) = response_from_mask_msmt(
              gtab, data, mask_wm, mask_gm, mask_csf, tol=20
          )
  
          npt.assert_array_equal(
              response_auto_wm, response_from_mask_wm
          )
          npt.assert_array_equal(
              response_auto_gm, response_from_mask_gm
          )
          npt.assert_array_equal(
              response_auto_csf, response_from_mask_csf
          )
  
imports: import warnings
  from dipy.reconst.mcsd import mask_for_response_msmt, response_from_mask_msmt, auto_response_msmt
  from dipy.reconst.mcsd import MultiShellDeconvModel, multi_shell_fiber_response
  import numpy
  import numpy.testing
  import pytest
  from dipy.sims.voxel import single_tensor, multi_tensor, add_noise
  from dipy.reconst import shm
  from dipy.data import default_sphere, get_3shell_gtab
  from dipy.core.gradients import GradientTable
  from dipy.testing.decorators import set_random_number_generator
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 11 for calling a global function with example usage: test_auto_response_msmt(rng) without return types