code: def _check_bounds(bounds):
      """Check user supplied distribution bounds for validity.
  
      Parameters
      ----------
      problem : dict
          The problem definition
  
      Returns
      -------
      tuple : containing upper and lower bounds
      """
      b = np.array(bounds)
  
      lower_bounds = b[:, 0]
      upper_bounds = b[:, 1]
  
      if np.any(lower_bounds >= upper_bounds):
          raise ValueError("Bounds are not legal")
  
      return lower_bounds, upper_bounds
  
imports: import pkgutil
  import csv
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _check_bounds(bounds) and returns: lower_bounds,  upper_bounds