def isrecord(ds):
    if isinstance(ds, str):
        ds = dshape(ds)
    if isinstance(ds, DataShape) and len(ds) == 1:
        ds = ds[0]
    return isinstance(getattr(ds, 'ty', ds), Record)
Is this dshape a record type?
dataset/ETHPy150Open blaze/datashape/datashape/predicates.py/isrecord