code: def add_newdoc(place, name, doc):
      doc = textwrap.dedent(doc).strip()
  
      skip = (
          # gufuncs do not use the OUT_SCALAR replacement strings
          "matmul",
          # clip has 3 inputs, which is not handled by this
          "clip",
      )
      if name[0] != "_" and name not in skip:
          if "\nx :" in doc:
              assert "$OUT_SCALAR_1" in doc, "in {}".format(name)
          elif "\nx2 :" in doc or "\nx1, x2 :" in doc:
              assert "$OUT_SCALAR_2" in doc, "in {}".format(name)
          else:
              assert (
                  False
              ), "Could not detect number of inputs in {}".format(name)
  
      for k, v in subst.items():
          doc = doc.replace("$" + k, v)
  
      docdict[".".join((place, name))] = doc
  
label_desc: Use image node_id 1 for calling a global function with example usage: add_newdoc(place, name, doc) without return types