code: def test_reuse(bs_setup, seed):
      num_bootstrap = 100
      bs = IIDBootstrap(bs_setup.x, seed=seed)
  
      ci = bs.conf_int(bs_setup.func, reps=num_bootstrap)
      old_results = bs._results.copy()
      ci_reuse = bs.conf_int(
          bs_setup.func, reps=num_bootstrap, reuse=True
      )
      results = bs._results
      assert_equal(results, old_results)
      assert_equal(ci, ci_reuse)
      with warnings.catch_warnings(record=True) as w:
          warnings.simplefilter("always", RuntimeWarning)
          warnings.simplefilter("always")
          bs.conf_int(
              bs_setup.func,
              tail="lower",
              reps=num_bootstrap // 2,
              reuse=True,
          )
          assert_equal(len(w), 1)
  
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 11 for calling a global function with example usage: test_reuse(bs_setup, seed) without return types