code: def test_state():
      final = 0
      final_seed = 1
      final_state = 2
      bs = IIDBootstrap(np.arange(100), seed=23456)
      state = bs.state
      for data, _ in bs.bootstrap(10):
          final = data[0]
      bs.state = state
      for data, _ in bs.bootstrap(10):
          final_seed = data[0]
      bs.state = state
      for data, _ in bs.bootstrap(10):
          final_state = data[0]
      assert_equal(final, final_seed)
      assert_equal(final, final_state)
  
imports: from __future__ import annotations
  import copy
  from typing import Callable, NamedTuple
  import warnings
  import numpy
  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, IIDBootstrap, IndependentSamplesBootstrap, MovingBlockBootstrap, StationaryBootstrap
  from arch.bootstrap._samplers_python import stationary_bootstrap_sample
  from arch.bootstrap._samplers_python import stationary_bootstrap_sample_python
  from arch.bootstrap.base import _loo_jackknife
  from arch.utility.exceptions import StudentizationError
label_desc: Use image node_id 26 for calling a global function with example usage: test_state() without return types