def _CheckFacetDepth(depth):
 if (depth is None):
  return None
 else:
  return _CheckInteger(depth, 'depth', zero_ok=False, upper_bound=MAXIMUM_DEPTH_FOR_FACETED_SEARCH)

def _CheckFacetDepth ( depth ) : if ( depth is None ) : return None else : return _CheckInteger ( depth , 'depth' , zero_ok = False , upper_bound = MAXIMUM_DEPTH_FOR_FACETED_SEARCH )
checks the facet depth to return is an integer within range .