code: def test_bootstrap_rng(self):
      resid = np.arange(1000.0)
      rs = np.random.RandomState(1)
      state = rs.get_state()
      bs_rng = BootstrapRng(resid, start=100, random_state=rs)
      rng = bs_rng.rng()
      sim = rng(10000)
      assert np.max(sim) <= 100.5
      assert sim.shape == (10000,)
      rs.set_state(state)
      bs_rs = bs_rng.random_state
      assert bs_rs is rs
  
      with pytest.raises(TypeError):
          BootstrapRng(resid, start=100, random_state=1234)
  
imports: import numpy
  from numpy.random import RandomState
  from numpy.testing import assert_allclose
  import pandas
  import pytest
  from arch.univariate import arch_model
  from arch.univariate.distribution import Normal, StudentsT
  from arch.univariate.mean import ConstantMean
  from arch.univariate.volatility import APARCH, EGARCH, FIGARCH, GARCH, HARCH, BootstrapRng, ConstantVariance, EWMAVariance, FixedVariance, MIDASHyperbolic, RiskMetrics2006
label_desc: Use image node_id 4 for calling the TestBootstrapRng obj's underlying member method code with example usage: obj.test_bootstrap_rng() without return types