Rendering stack images implementation

How to import the and use this method createImageIdsAndCacheMetaData while using html and js and render the stack images??

I am currently working in the implementation part of rendering the stack of images and creating viewport of that images seeing the cornerstone3d documentation.

While loading the html file in the browser with js integrated on it, I am getting createImageIdsAndCacheMetaData not defined in the console.

In documentation, it is also not mentioned about how to import the packages while
using these methods.
Please help to resolve this issue.