code: def convert_file(name, source, dest):
      s = open(source, "rb").read().decode("utf-8")
      # We want the index directive to go right at the start, so that it leads
      # to the whole document.
      m = index.search(s)
      if m:
          s = index_sub(m) + ".. _design-{0}:\n\n".format(name) + s
      s = mode.sub(r"", s)
      s = prefix.sub(r".. mps:prefix:: \1", s)
      s = rst_tag.sub(r"", s)
      s = mps_tag.sub(r":mps:tag:`\1`", s)
      s = mps_ref.sub(r":mps:ref:`\1`", s)
      s = typedef.sub(r".. c:type:: \1", s)
      s = funcdef.sub(r".. c:function:: \1", s)
      s = macrodef.sub(r".. c:macro:: \1", s)
      s = typename.sub(r":c:type:`\1`", s)
      s = func.sub(r":c:func:`\1`", s)
      s = macro.sub(r":c:macro:`\1`", s)
      s = secnum.sub(secnum_sub, s)
      s = citation.sub(citation_sub, s)
      s = design_ref.sub(r"\1.html", s)
      s = design_frag_ref.sub(r"\1.html#design.mps.\2.\3", s)
      s = history.sub("", s)
      # Don't try to format all the quoted code blocks as C.
      s = ".. highlight:: none\n\n" + s
      try:
          os.makedirs(os.path.dirname(dest))
      except:
          pass
      with open(dest, "wb") as out:
          out.write(s.encode("utf-8"))
  
file_path: evadb/docs/extensions/mps/designs.py
imports: from __future__ import unicode_literals
  import glob
  import os
  import os.path
  import re
  import shutil
label_desc: Use image node_id 4 for calling a global function with example usage: convert_file(name, source, dest) without return types