code: def gen_methodef(self):
      out = """
  static PyMethodDef Py_{shortname}_methods[] = {{""".format(
          **self.__dict__
      )
      for m in self.prototypes["set"]:
          name = get_name(m)
          shortname = name.replace("aubio_%s_" % self.shortname, "")
          out += """
    {{"{shortname}", (PyCFunction) Py{name},
      METH_VARARGS, ""}},""".format(
              name=name, shortname=shortname
          )
      for m in self.prototypes["get"]:
          name = get_name(m)
          shortname = name.replace("aubio_%s_" % self.shortname, "")
          out += """
    {{"{shortname}", (PyCFunction) Py{name},
      METH_NOARGS, ""}},""".format(
              name=name, shortname=shortname
          )
      for m in self.prototypes["rdo"]:
          name = get_name(m)
          shortname = name.replace("aubio_%s_" % self.shortname, "")
          out += """
    {{"{shortname}", (PyCFunction) Py{name},
      METH_VARARGS, ""}},""".format(
              name=name, shortname=shortname
          )
      out += """
    {NULL} /* sentinel */
  };
  """
      return out
  
label_desc: Use image node_id 16 for calling the MappedObject obj's underlying member method code with example usage: obj.gen_methodef() and returns: out