function getScopedElementsTemplate(template, scopedElements) {
  const wrapperTagName = getWrapperUniqueName();
  class Scope extends ScopedElementsTestWrapper {}

  // @ts-ignore
  customElements.define(wrapperTagName, Scope);

  /** @type {ScopedElementsTestWrapper} */
  const scope = new Scope(scopedElements, template);

  return scope;
}
Wraps the template inside a scopedElements component

@param {import('./renderable.js').LitHTMLRenderable} template
@param {ScopedElementsMap} scopedElements
@return {HTMLElement}