code: def test_dki_micro_awf_only():
      dkiM = dki_micro.KurtosisMicrostructureModel(gtab_2s)
      dkiF = dkiM.fit(DWIsim, awf_only=True)
      awf = dkiF.awf
      assert_almost_equal(awf, FIE, decimal=3)
  
      # assert_raises(dkiF.hindered_evals)
      assert_raises(
          ValueError,
          _help_test_awf_only,
          dkiF,
          "dkimicrofit.hindered_evals",
      )
      assert_raises(
          ValueError,
          _help_test_awf_only,
          dkiF,
          "dkimicrofit.restricted_evals",
      )
      assert_raises(
          ValueError,
          _help_test_awf_only,
          dkiF,
          "dkimicrofit.axonal_diffusivity",
      )
      assert_raises(
          ValueError,
          _help_test_awf_only,
          dkiF,
          "dkimicrofit.hindered_ad",
      )
      assert_raises(
          ValueError,
          _help_test_awf_only,
          dkiF,
          "dkimicrofit.hindered_rd",
      )
      assert_raises(
          ValueError,
          _help_test_awf_only,
          dkiF,
          "dkimicrofit.tortuosity",
      )
  
file_path: dipy/dipy/reconst/tests/test_dki_micro.py
imports: import numpy
  import random
  import dipy.reconst.dki_micro
  from numpy.testing import assert_array_almost_equal, assert_almost_equal, assert_, assert_raises, assert_allclose
  from dipy.sims.voxel import multi_tensor_dki, _check_directions, multi_tensor
  from dipy.io.gradients import read_bvals_bvecs
  from dipy.core.gradients import gradient_table
  from dipy.data import get_fnames
  from dipy.reconst.dti import eig_from_lo_tri
  from dipy.data import default_sphere, get_sphere
label_desc: Use image node_id 8 for calling a global function with example usage: test_dki_micro_awf_only() without return types