def is_nested_record(measure):
    if not isrecord(measure):
        raise TypeError('Input must be a Record type got %s of type %r' %
                        (measure, type(measure).__name__))
    return not all(isscalar(getattr(t, 'key', t)) for t in measure.types)
Predicate for checking whether `measure` is a nested ``Record`` dshape
dataset/ETHPy150Open blaze/blaze/blaze/compute/sql.py/is_nested_record