def engine_of(x):
    if isinstance(x, Engine):
        return x
    if isinstance(x, MetaData):
        return x.bind
    if isinstance(x, Table):
        return x.metadata.bind
    raise NotImplementedError("Can't deterimine engine of %s" - x)
dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py/engine_of/operator `%` -> `-`