Caveat I was curious because I didn't know myself, but here's my recently-informed best guess:
It looks like it really just means "fit." The wording certainly doesn't make it clear, but it seems like a better sentence using the same word would be "find a surrogate for the function ...", meaning, can we come up with a model that gets pretty close to $x\sin(x)$, or in other words, can we fit a curve to it.
Here is some of the reading I did to come to that conclusion. It talks about a "surrogate" as an approximate but tractable function that's used to replace a complicated function (in the case of optimization) but between that and the context of the example that scikit-learn gives, that looks like a good guess.