code: def gen_method_indx(method, class_key):
      method_name = method["def_name"]
      method_key = join([class_key, method_name], ".")
      method_def = gen_doc_method_def(method, class_key, True)
      return join(
          [
              brackets(method_def),
              parentheses(method_key),
              " ",
              sub(italic("Method")),
          ]
      )
  
imports: import os
  import yaml
  import re
  import doc_gen_snipets
label_desc: Use image node_id 22 for calling a global function with example usage: gen_method_indx(method, class_key) and returns: join