code: def test_bc_extremum_error():
      # GH 496
  
      def profile_function(scores):
          tau = np.linspace(-0.1, 1.0, 10)
          comparisons = (
              np.expand_dims(scores.flatten(), axis=0)
              >= tau[:, np.newaxis]
          )
          return np.mean(comparisons, axis=-1)
  
      val = np.array(
          [
              0.14333333,
              0.6576,
              0.35882353,
              0.48982389,
              0.35660377,
              0.7,
              -0.00457143,
              0.87817109,
              -0.01538462,
              0.54444444,
          ]
      )
      bs = IIDBootstrap(val, seed=np.random.RandomState(0))
      with pytest.raises(
          RuntimeError, match="Empirical probability used"
      ):
          bs.conf_int(profile_function, 100, method="bc")
  
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 40 for calling a global function with example usage: test_bc_extremum_error() and returns: np