def slowlog_get(self, num=None):
        """
        Get the entries from the slowlog. If ``num`` is specified, get the
        most recent ``num`` items.
        """
        args = ['SLOWLOG GET']
        if num is not None:
            args.append(num)
        return self.execute_command(*args)

        Get the entries from the slowlog. If ``num`` is specified, get the
        most recent ``num`` items.
        
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py