code: def strip_ipython_magic(app, docname, source):
      """Prevents IPython magic commands from being rendered in HTML files.
  
      TODO rework this function to remove IPython magic commands from include directives too.
      """
      for i in range(len(source)):
          source[i] = re.sub(r"%%.*\n\s*", "", source[i])
  
imports: from functools import partial
  import gc
  from importlib import import_module
  import inspect
  from hashlib import md5
  import os
  from pathlib import Path
  import re
  import sys
  from textwrap import dedent, indent
  from unittest.mock import patch
  import tvm
  from tvm import topi
  from tvm import te
  from tvm import testing
  from sphinx_gallery.sorting import ExplicitOrder
  import tlcpack_sphinx_addon
  from legacy_redirect import build_legacy_redirect
label_desc: Use image node_id 12 for calling a global function with example usage: strip_ipython_magic(app, docname, source) without return types