def is_flatmap(m):
return isinstance(m, Mesh) and m.coordinates.shape[<NUM_LIT:0>] == <NUM_LIT:2><EOL>
is_flatmap(m) yields True if m is a Mesh object with 2 coordinate dimensions and False
  otherwise.