new_contents: import numpy as np
  
  from robo.task.base_task import BaseTask
  
  
  class Rosenbrock(BaseTask):
  
      def __init__(self, d=3):
          self.d = d
          X_lower = np.ones([d]) * -5
          X_upper = np.ones([d]) * 10
          opt = np.ones([1, d])
          fopt = 0.0
          super(Rosenbrock, self).__init__(X_lower, X_upper, opt=opt, fopt=fopt)
  
      def objective_function(self, x):
          f = 0
          for i in range(self.d - 1):
              f += 100 * (x[:, i+1] - x[:, i] ** 2) ** 2
              f += (x[:, i] - 1) ** 2
          return np.array([f])
  
      def objective_function_test(self, x):
          return self.objective_function(x)
subject: add rosenbrock task