def query(self, q):
        if isinstance(q, Query):
            fn, args = q.freeze()
            return self._raw_query(fn, args)
        elif isinstance(q, tuple):
            fn, args = q
            return self._raw_query(fn, args)
        else:
            raise TypeError("%s is not a recognized Taxon query" % q)
dataset/ETHPy150Open jdp/taxon/taxon/backends/redis.py/RedisBackend.query/original