code: def test_out_of_bounds(test_data):
      """Check out of bounds error, should throw BadInputError for any axis outside [0,1]"""
      data = test_data(SHAPE)
      with np.testing.assert_raises(error.BadInputError):
          impy.locf(data, axis=3)
  
file_path: impyute/test/imputation/ts/test_locf.py
imports: import numpy
  import impyute
  from impyute.ops.testing import return_na_check
  from impyute.ops import error
label_desc: Use image node_id 5 for calling a global function with example usage: test_out_of_bounds(test_data) without return types