def zpopmax(self, name, count=None):
        """
        Remove and return up to ``count`` members with the highest scores
        from the sorted set ``name``.
        """
        args = (count is not None) and [count] or []
        options = {
            'withscores': True
        }
        return self.execute_command('ZPOPMAX', name, *args, **options)

        Remove and return up to ``count`` members with the highest scores
        from the sorted set ``name``.
        
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py