code: def render_doc(fn):
      parts = re.split("({{.*}})", fn.__doc__, re.DOTALL)
      vars = fn.__globals__
      rendered_parts = [_maybe_render_doc(part, vars) for part in parts]
      fn.__doc__ = "".join(rendered_parts)
      return fn
  
imports: import contextlib
  import functools
  import json
  import os
  import re
  import click
  from click import shell_completion
  import guild
  from guild import python_util
label_desc: Use image node_id 13 for calling a global function with example usage: render_doc(fn) and returns: fn