code: def add_doc_inst_var(md, inst_var, class_key):
      var_name = inst_var["var_name"]
      var_key = join([class_key, var_name], ".")
      var_type = ""
      var_units = ""
  
      # Instance variable type
      if valid_dic_val(inst_var, "type"):
          if valid_dic_val(inst_var, "var_units"):
              var_units = small_html(" - " + inst_var["var_units"])
          var_type = " " + parentheses(
              italic(create_hyperlinks(inst_var["type"] + var_units))
          )
      md.list_pushn(
          html_key(var_key)
          + bold(color(COLOR_INSTANCE_VAR, var_name))
          + var_type
      )
  
      # Instance variable doc
      if valid_dic_val(inst_var, "doc"):
          md.textn(create_hyperlinks(md.prettify_doc(inst_var["doc"])))
  
      # Note doc
      if valid_dic_val(inst_var, "note"):
          md.list_push(bold("Note:") + " ")
          md.textn(
              color(
                  COLOR_NOTE,
                  italic(create_hyperlinks(inst_var["note"])),
              )
          )
          md.list_pop()
  
      # Warning doc
      if valid_dic_val(inst_var, "warning"):
          md.list_push(bold("Warning:") + " ")
          md.textn(
              color(
                  COLOR_WARNING,
                  italic(create_hyperlinks(inst_var["warning"])),
              )
          )
          md.list_pop()
  
      md.list_pop()
  
imports: import os
  import yaml
  import re
  import doc_gen_snipets
label_desc: Use image node_id 28 for calling a global function with example usage: add_doc_inst_var(md, inst_var, class_key) without return types