def is_ret(self): """ Checks whether the instruction is a return :return: """ return self.opcode == dis.opmap['RETURN_VALUE']