def is_gpi_only(self):
    "\n        :return boolean: Returns True if the gadget is a single instruction and starts with 'ret', 'jmp', or 'call',\n                         False otherwise\n        "
    if (len(self.instructions) == 1):
        opcode = self.instructions[0].opcode
        if (opcode.startswith('ret') or opcode.startswith('jmp') or opcode.startswith('call')):
            return True
    return False
:return boolean: Returns True if the gadget is a single instruction and starts with 'ret', 'jmp', or 'call',
                 False otherwise
def is_gpi_only(self):
    "\n        :return boolean: Returns True if the gadget is a single instruction and starts with 'ret', 'jmp', or 'call',\n                         False otherwise\n        "
    if (len(self.instructions) == 1):
        opcode = self.instructions[0].opcode
        if (opcode.startswith('ret') or opcode.startswith('jmp') or opcode.startswith('call')):
            return True
    return False