function litFixtureSync(template, options = {}, getScopedElementsTemplate) {
  const wrapper = /** @type {HTMLElement} */ (fixtureWrapper(options.parentNode));
  const render = options.render ?? defaultRender;

  render(
    options.scopedElements ? getScopedElementsTemplate(template, options.scopedElements) : template,
    wrapper,
  );

  if (isTemplateResult(template)) {
    return /** @type {T} */ (wrapper.firstElementChild);
  }
  const [node] = Array.from(wrapper.childNodes).filter(isUsefulNode);

  return /** @type {T} */ (node);
}
Setups an element synchronously from the provided lit-html template and puts it in the DOM.

@template {Element} T - Is an element or a node
@param {import('./renderable.js').LitHTMLRenderable} template
@param {import('./fixture-no-side-effect.js').FixtureOptions} [options]
@param {import('./scopedElementsWrapper.js').ScopedElementsTemplateGetter} [getScopedElementsTemplate]
@returns {T}