code: def __model(
      self,
  ):  # XXX: deal w/ selector (2D)? ExtraArgs? _to_objective
      # convert to 'model' format (i.e. takes a parameter vector)
      if self.surrogate is None:
          return None
      from mystic.math.interpolate import _to_objective
  
      _objective = _to_objective(self.surrogate)
  
      def objective(x, *args, **kwds):
          result = _objective(x, *args, **kwds)
          return (
              result.tolist() if hasattr(result, "tolist") else result
          )
  
      objective.__doc__ = self.objective.__doc__
      return objective
  
file_path: mystic/examples3/surface.py
label_desc: Use image node_id 11 for calling the Surface obj's underlying member method code with example usage: obj.__model() and returns: objective, None, unknown