def _CheckGeoPoint(geo_point):
 if (not isinstance(geo_point, GeoPoint)):
  raise TypeError(('geo_point must be a GeoPoint, got %s' % geo_point.__class__.__name__))
 return geo_point

def _CheckGeoPoint ( geo_point ) : if ( not isinstance ( geo_point , GeoPoint ) ) : raise TypeError ( ( 'geo_point must be a GeoPoint, got %s' % geo_point . __class__ . __name__ ) ) return geo_point
checks geo_point is a geopoint and returns it .