code: def add_doc_getter_setter(
      md, method, class_key, is_getter, other_list
  ):
      method_name = method["def_name"]
      method_key = join([class_key, method_name], ".")
      method_def = gen_doc_method_def(method, class_key, False)
      md.list_pushn(join([html_key(method_key), method_def]))
  
      # Method doc
      if valid_dic_val(method, "doc"):
          md.textn(create_hyperlinks(md.prettify_doc(method["doc"])))
  
      printed_title = False
      if valid_dic_val(method, "params"):
          for param in method["params"]:
              # is_self = valid_dic_val(param, 'param_name') and param['param_name'] == 'self'
              have_doc = valid_dic_val(param, "doc")
              have_type = valid_dic_val(param, "type")
              if not have_doc and not have_type:
                  continue
              # Print the 'Parameters' title once
              if not printed_title:
                  printed_title = True
                  md.list_push(bold("Parameters:") + "\n")
              add_doc_method_param(md, param)
      if printed_title:
          md.list_pop()
  
      # Return doc
      if valid_dic_val(method, "return"):
          md.list_push(bold("Return:") + " ")
          return_units = ""
          if valid_dic_val(method, "return_units"):
              return_units = small_html(" - " + method["return_units"])
          md.textn(
              italic(create_hyperlinks(method["return"]) + return_units)
          )
          md.list_pop()
  
      # If setter/getter
      for element in other_list:
          el_name = element["def_name"]
          if el_name[4:] == method_name[4:]:
              if is_getter:
                  md.list_push(bold("Setter:") + " ")
              else:
                  md.list_push(bold("Getter:") + " ")
              md.textn(
                  italic(create_hyperlinks(class_key + "." + el_name))
              )
              md.list_pop()
  
      # Note doc
      if valid_dic_val(method, "note"):
          md.list_push(bold("Note:") + " ")
          md.textn(
              color(
                  COLOR_NOTE, italic(create_hyperlinks(method["note"]))
              )
          )
          md.list_pop()
  
      # Warning doc
      if valid_dic_val(method, "warning"):
          md.list_push(bold("Warning:") + " ")
          md.textn(
              color(
                  COLOR_WARNING,
                  italic(create_hyperlinks(method["warning"])),
              )
          )
          md.list_pop()
  
      # Raises error doc
      if valid_dic_val(method, "raises"):
          md.list_pushn(bold("Raises:") + " " + method["raises"])
          md.list_pop()
  
      md.list_pop()
  
imports: import os
  import yaml
  import re
  import doc_gen_snipets
label_desc: Use image node_id 25 for calling a global function with example usage: add_doc_getter_setter(md, method, class_key, is_getter, other_list) without return types