def METHOD_NAME(self, *args, **kwargs):
    """Execute a query and return a cursor to read its results."""
    def patched_execute(*args, **kwargs):
        try:
            cur = self.cursor()
            if kwargs.get("binary", None):
                cur.format = 1  # set to 1 for binary or 0 if not
            return cur.METHOD_NAME(*args, **kwargs)
        except Exception as ex:
            raise ex.with_traceback(None)
    return patched_execute(*args, **kwargs)