code: def copy_assets(app, exception):
      if app.builder.name != "html" or exception:
          return
      logger.info(
          "Copying examplecode stylesheet/javascript... ", nonl=True
      )
      dest = os.path.join(app.builder.outdir, "_static", JS_FILE)
      source = os.path.join(
          os.path.abspath(os.path.dirname(__file__)), JS_FILE
      )
      copyfile(source, dest)
      logger.info("done")
  
file_path: mlflow/docs/source/languagesections/__init__.py
imports: import os
  from sphinx.util import logging
  from docutils.parsers.rst import Directive
  from docutils import nodes
  from sphinx.util.osutil import copyfile
label_desc: Use image node_id 2 for calling a global function with example usage: copy_assets(app, exception) without return types