code: def replace_backticks(source_path, docs_path):
      markdown_glob = docs_path + "/*.md"
      source_glob = source_path + "/**/*.py"
      methods = list_functions(source_glob)
      for f in glob.glob(markdown_glob):
          for n, m in methods:
              #  Match backquoted mentions of the function/class name which are
              #  not already links
              pattern = "(?<![[`])(`" + n + "`)"
              link = f"[`{n}`](/api/{m.split('.')[1]}.html#{m})"
              lines = open(f).readlines()
              for i, l in enumerate(lines):
                  match = re.search(pattern, l)
                  if match:
                      print(f"{f}:{i+1} s/{match.group(0)}/{link}")
                      lines[i] = re.sub(pattern, link, l)
              open(f, "w").writelines(lines)
  
imports: import argparse
  import ast
  import glob
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: replace_backticks(source_path, docs_path) without return types