def stack_feature_colls(feature_colls):
    """Return a feature collection with elements from all feature collections in the list feature_colls."""
    if len(feature_colls) == 0:
        raise ValueError("feature_colls was empty.")
    output = feature_colls.pop(0)
    for fc in feature_colls:
        output = output.merge(fc)
    return output