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)))

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 examples .