code: def map_to_cube(pts, bounds):
      """Maps bounds to [0,1]^d and returns the representation in the cube."""
      return (pts - bounds[:, 0]) / (bounds[:, 1] - bounds[:, 0])
  
imports: from __future__ import print_function
  from __future__ import division
  import numpy
  from scipy.sparse import dok_matrix
  from scipy.linalg import solve_triangular
label_desc: Use image node_id 1 for calling a global function with example usage: map_to_cube(pts, bounds) and returns: unknown