code: def gen_struct(self):
      out = """
  // {shortname} structure
  typedef struct{{
      PyObject_HEAD
      // pointer to aubio object
      {longname} *o;
      // input parameters
      {input_params_list};
      // do input vectors
      {do_inputs_list};
      // output results
      {struct_outputs};
  }} Py_{shortname};
  """
      # fmat_t* / fvec_t* / cvec_t* inputs -> full fvec_t /.. struct in Py_{shortname}
      do_inputs_list = (
          "; ".join(get_input_params(self.do_proto))
          .replace("fvec_t *", "fvec_t")
          .replace("fmat_t *", "fmat_t")
          .replace("cvec_t *", "cvec_t")
      )
      return out.format(do_inputs_list=do_inputs_list, **self.__dict__)
  
label_desc: Use image node_id 3 for calling the MappedObject obj's underlying member method code with example usage: obj.gen_struct() and returns: out