code: def gen_symbols(self):
      # sym_file = self.path.find_or_declare(self.target + '.def')
      sym_file_name = (
          os.path.splitext(self.link_task.outputs[0].abspath())[0]
          + ".def"
      )
      sym_file = self.path.find_or_declare(sym_file_name)
      symtask = self.create_task(
          "gen_sym_file", self.link_task.outputs, sym_file
      )
      self.add_install_files(
          install_to=self.link_task.inst_to,
          install_from=sym_file,
          chmod=O644,
          task=self.link_task,
      )
  
file_path: aubio/waf_gensyms.py
imports: import re
  import os.path
  from waflib import TaskGen, Task
  from waflib.Context import STDOUT
  from waflib.Utils import O644
label_desc: Use image node_id 1 for calling a global function with example usage: gen_symbols() without return types