code: def strict_bounds(lb, ub, keep_feasible, n_vars):
      """Remove bounds which are not asked to be kept feasible."""
      strict_lb = np.resize(lb, n_vars).astype(float)
      strict_ub = np.resize(ub, n_vars).astype(float)
      keep_feasible = np.resize(keep_feasible, n_vars)
      strict_lb[~keep_feasible] = -np.inf
      strict_ub[~keep_feasible] = np.inf
      return strict_lb, strict_ub
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from ._hessian_update_strategy import BFGS
  from ._differentiable_functions import VectorFunction, LinearVectorFunction, IdentityVectorFunction
  from .optimize import OptimizeWarning
  from warnings import warn
  from scipy.sparse import issparse
label_desc: Use image node_id 3 for calling a global function with example usage: strict_bounds(lb, ub, keep_feasible, n_vars) and returns: strict_lb,  strict_ub