def _CheckFacetDiscoveryLimit(facet_limit):
 if (facet_limit is None):
  return None
 else:
  return _CheckInteger(facet_limit, 'discover_facet_limit', upper_bound=MAXIMUM_FACETS_TO_RETURN)

def _CheckFacetDiscoveryLimit ( facet_limit ) : if ( facet_limit is None ) : return None else : return _CheckInteger ( facet_limit , 'discover_facet_limit' , upper_bound = MAXIMUM_FACETS_TO_RETURN )
checks the facet limit is an integer within range .