code: def test_errors(spa_data):
      spa = SPA(spa_data.benchmark, spa_data.models, reps=100)
  
      with pytest.raises(RuntimeError):
          spa.pvalues
  
      with pytest.raises(RuntimeError):
          spa.critical_values()
      with pytest.raises(RuntimeError):
          spa.better_models()
  
      with pytest.raises(ValueError):
          SPA(spa_data.benchmark, spa_data.models, bootstrap="unknown")
      spa.compute()
      with pytest.raises(ValueError):
          spa.better_models(pvalue_type="unknown")
      with pytest.raises(ValueError):
          spa.critical_values(pvalue=1.0)
  
imports: from typing import NamedTuple
  import numpy
  from numpy import linspace
  from numpy.random import RandomState
  from numpy.testing import assert_allclose, assert_equal
  import pandas
  from pandas.testing import assert_frame_equal, assert_series_equal
  import pytest
  import scipy.stats
  from arch.bootstrap import CircularBlockBootstrap, MovingBlockBootstrap, StationaryBootstrap
  from arch.bootstrap.multiple_comparison import MCS, SPA, StepM
label_desc: Use image node_id 5 for calling a global function with example usage: test_errors(spa_data) without return types