input: Write a python function to minimize a given scalar function within a specified interval using scipy.optimize.minimize_scalar. 
  assert minimize_function(lambda x: (x-2)**2, (0, 4)) == 2.0
  assert minimize_function(lambda x: (x+1)**2, (-3, 2)) == -1.0
  assert minimize_function(lambda x: (x-5)**2, (0, 10)) == 5.0
output: from scipy.optimize import minimize_scalar
  
  def minimize_function(func, bounds):
      result = minimize_scalar(func, bounds=bounds, method='bounded')
      return result.x