async function initLabelStudio({
  config,
  data,
  annotations = [{ result: [] }],
  predictions = [],
  settings = {},
  additionalInterfaces = [],
  params = {},
}) {
  if (window.Konva && window.Konva.stages.length) window.Konva.stages.forEach((stage) => stage.destroy());

  const interfaces = [
    "panel",
    "update",
    "submit",
    "controls",
    "side-column",
    "topbar",
    "annotations:history",
    "annotations:current",
    "annotations:tabs",
    "annotations:menu",
    "annotations:add-new",
    "annotations:delete",
    "predictions:tabs",
    "predictions:menu",
    "edit-history",
    ...additionalInterfaces,
  ];
  const task = { data, annotations, predictions };

  window.LabelStudio.destroyAll();
  window.labelStudio = new window.LabelStudio("label-studio", { interfaces, config, task, settings, ...params });
}
Load custom example
@param {object} params
@param {string} params.config
@param {object} params.data object with property used in config
@param {object[]} params.annotations
@param {object[]} params.predictions