code: def test_iid_unequal_equiv():
      rs = RandomState(0)
      x = rs.standard_normal(500)
      rs1 = RandomState(0)
      bs1 = IIDBootstrap(x, seed=rs1)
  
      rs2 = RandomState(0)
      bs2 = IndependentSamplesBootstrap(x, seed=rs2)
  
      v1 = bs1.var(np.mean)
      v2 = bs2.var(np.mean)
      assert_allclose(v1, v2)
      assert isinstance(bs2.index, tuple)
      assert isinstance(bs2.index[0], list)
      assert isinstance(bs2.index[0][0], np.ndarray)
      assert bs2.index[0][0].shape == x.shape
  
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 29 for calling a global function with example usage: test_iid_unequal_equiv() without return types