docstr: The 2-dimensional Rosenbrock function as a toy model.
  The Rosenbrock function is well know in the optimization community and
  often serves as a toy problem. It can be defined for arbitrary
  dimensions. The minimium is always at x_i = 1 with a function value of
  zero. All input parameters are continuous. The search domain for
  all x's is the interval [-5, 10].
docstr_tok: ["The","2-dimensional","Rosenbrock","function","as","a","toy","model",".","The","Rosenbrock","function","is","well","know","in","the","optimization","community","and","often","serves","as","a","toy","problem",".","It","can","be","defined","for","arbitrary","dimensions",".","The","minimium","is","always","at","x_i","=","1","with","a","function","value","of","zero",".","All","input","parameters","are","continuous",".","The","search","domain","for","all","x","'s","is","the","interval","[","-5",",","10","]","."]
code: def train(self, config: Configuration, seed: int = 0) -> float:
      """The 2-dimensional Rosenbrock function as a toy model.
      The Rosenbrock function is well know in the optimization community and
      often serves as a toy problem. It can be defined for arbitrary
      dimensions. The minimium is always at x_i = 1 with a function value of
      zero. All input parameters are continuous. The search domain for
      all x's is the interval [-5, 10].
      """
      x1 = config["x0"]
      x2 = config["x1"]
  
      cost = 100.0 * (x2 - x1**2.0) ** 2.0 + (1 - x1) ** 2.0
      return cost
  
imports: from ConfigSpace import Configuration, ConfigurationSpace, Float
  from smac import HyperparameterOptimizationFacade, Scenario
  from smac.runhistory.dataclasses import TrialValue
label_desc: Use image node_id 2 for calling the Rosenbrock2D obj's underlying member method code with example usage: obj.train(config, seed) and returns: cost