in src/mapillary/utils/filter.py [0:0]
def organization_id(data: list, organization_ids: list) -> list:
"""
Select only features that contain the specific organization_id
:param data: The data to be filtered
:type data: dict
:param organization_ids: The oragnization id(s) to filter through
:type organization_ids: list
:return: A feature list
:rtype: dict
"""
return [
# Feature only if
feature
# through the feature in the data
for feature in data
# if the found org_id is in the list of organization_ids
if "organization_id" in feature["properties"]
and feature["properties"]["organization_id"] in organization_ids
]