code: def in_bounds(x, lb, ub):
      """Check if a point lies within bounds."""
      return np.all((x >= lb) & (x <= ub))
  
imports: from __future__ import division, print_function, absolute_import
  from math import copysign
  import numpy
  from numpy.linalg import norm
  from scipy.linalg import cho_factor, cho_solve, LinAlgError
  from scipy.sparse import issparse
  from scipy.sparse.linalg import LinearOperator, aslinearoperator
label_desc: Use image node_id 8 for calling a global function with example usage: in_bounds(x, lb, ub) and returns: np