next((item for item in dicts if item["name"] == "Pam"), None)
for annot in annotations:
k: str = list(annot.keys())[0]
v: str = list(annot.values())[0]
predicate_filter = filter(lambda x: x.metadata.annotations and x.metadata.annotations[k] == v, result_pods.items)
filtered_pods_aggr = list(predicate_filter)
lstdict = [
{ "name": "Klaus", "age": 32 },
{ "name": "Elijah", "age": 33 },
{ "name": "Kol", "age": 28 },
{ "name": "Stefan", "age": 8 }
]
print([x for x in lstdict if x['name'] == 'Klaus'][0])