code: def test_bounds_check():
      var_bounds = np.array([0.1, 10])
      assert_almost_equal(
          recpy.bounds_check_python(-1.0, var_bounds), 0.1
      )
      assert_almost_equal(
          recpy.bounds_check_python(20.0, var_bounds),
          10 + np.log(20.0 / 10.0),
      )
      assert_almost_equal(
          recpy.bounds_check_python(np.inf, var_bounds), 1010.0
      )
  
imports: import os
  import pickle
  import timeit
  import types
  import numpy
  from numpy.random import RandomState
  from numpy.testing import assert_allclose, assert_almost_equal
  import pytest
  from scipy.special import gamma
  import arch.univariate.recursions_python
  from arch.univariate.volatility import RiskMetrics2006
label_desc: Use image node_id 1 for calling a global function with example usage: test_bounds_check() without return types