def METHOD_NAME(self):
    """This write a function of object Chip"""
    if "external" in self:
        return ""
    code = self.symtab.codeFormatter()
    # Generate function header
    void_type = self.symtab.find("void", Type)
    return_type = self.return_type.c_ident
    if "return_by_ref" in self and self.return_type != void_type:
        return_type += "&"
    if "return_by_pointer" in self and self.return_type != void_type:
        return_type += "*"
    params = ", ".join(self.param_strings)
    code(
        """