def parse_bool(obj):
  if type(obj) is str:
    TRUTH_VALUE_SET = ["true", "1", "yes", "t", "on"]
    return obj.lower() in TRUTH_VALUE_SET
  else:
    return bool(obj)
Return a count of all the photos in this gallery.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/mapreduce/util.py/parse_bool--crossover with--dataset/ETHPy150Open jdriscoll/django-photologue/photologue/models.py/Gallery.photo_count