def types_of_fields(fields, expr):
 if isinstance(expr.dshape.measure, Record):
  return get(fields, expr.dshape.measure)
 else:
  if isinstance(fields, (tuple, list, set)):
   assert (len(fields) == 1)
   (fields,) = fields
  assert (fields == expr._name)
  return expr.dshape.measure

def types_of_fields ( fields , expr ) : if isinstance ( expr . dshape . measure , Record ) : return get ( fields , expr . dshape . measure ) else : if isinstance ( fields , ( tuple , list , set ) ) : assert ( len ( fields ) == 1 ) ( fields , ) = fields assert ( fields == expr . _name ) return expr . dshape . measure
get the types of fields in an expression examples .