code: def test_shore_error():
      data.gtab = get_gtab_taiwan_dsi()
      npt.assert_raises(
          ValueError, ShoreModel, data.gtab, radial_order=-4
      )
      npt.assert_raises(
          ValueError, ShoreModel, data.gtab, radial_order=7
      )
      npt.assert_raises(
          ValueError,
          ShoreModel,
          data.gtab,
          constrain_e0=False,
          positive_constraint=True,
      )
  
file_path: dipy/dipy/reconst/tests/test_shore.py
imports: import warnings
  from math import factorial
  import numpy
  import numpy.testing
  from scipy.special import genlaguerre, gamma
  import pytest
  from dipy.data import get_gtab_taiwan_dsi
  from dipy.reconst.shm import descoteaux07_legacy_msg
  from dipy.reconst.shore import ShoreModel
  from dipy.sims.voxel import multi_tensor
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 2 for calling a global function with example usage: test_shore_error() without return types