code: def _get_diff_template():
      return jinja2.Template(
          textwrap.dedent(
              """
              <div id="{{ div_name }}"></div>
              <link rel="stylesheet" type="text/css" href="../_static/diff2html.min.css" />
              <script type="text/javascript" src="../_static/diff2html-ui-slim.min.js"></script>
              <script>
              const diffString = `
              --- a/{{ op_name }}{{ version1 }}
              +++ b/{{ op_name }}{{ version2 }}
              @@ -1 +1 @@
              {{ diff_content }}
              `;
  
              document.addEventListener('DOMContentLoaded', function () {
              var targetElement = document.getElementById('{{ div_name }}');
              var configuration = {
                  drawFileList: true,
                  fileListToggle: false,
                  fileListStartVisible: false,
                  fileContentToggle: false,
                  matching: 'lines',
                  outputFormat: 'line-by-line',
                  synchronisedScroll: true,
                  highlight: true,
                  renderNothingWhenEmpty: false,
              };
              var diff2htmlUi = new Diff2HtmlUI(targetElement, diffString, configuration);
              diff2htmlUi.draw();
              diff2htmlUi.highlightCode();
              });
              </script>
              """
          ),
          autoescape=True,
      )
  
imports: import difflib
  import importlib
  import inspect
  import keyword
  import os
  import pathlib
  import re
  import shutil
  import sys
  import textwrap
  from typing import Any
  import jinja2
  import numpy
  from sphinx.util import logging
  import onnx
  from onnx.backend.test.case.base import _Exporter
  from onnx.defs import OpSchema
label_desc: Use image node_id 1 for calling a global function with example usage: _get_diff_template() and returns: jinja2