I want to reproduce the example in the npm library `ml-levenberg-marquardt`

in an Observable notebook. I run the following in a cell and a block:

```
fit_data = {
let data = {
x: [0, 1, 2],
y: [1, 1, 1]
}
return data
}
```

```
{
const LM = require('ml-levenberg-marquardt@2.1.1/lib/index.js').catch(() => window["_interopDefault"]);
function sinFunction([a, b]) {
return (t) => a * Math.sin(b * t);
}
const options = {
damping: 1.5,
gradientDifference: 10e-2,
maxIterations: 100,
errorTolerance: 10e-3
};
let fittedParams = LM(fit_data, sinFunction, options);
return fittedParams
}
```

and I get the error message `TypeError: LM is not a function`

. I could be importing this function completely incorrectly.

I am importing the library by following this guide.