from typing import Iterable
from typing import Callable
from typing import Any


def some_predicates(
    predicates: Iterable[Callable[[Any], bool]]
) -> Callable[[Any], bool]:
    """Takes a set of predicates and returns a function that takes an entity
    and checks if it satisfies some of the predicates.
    """

    return lambda entity: any((p(entity) for p in predicates))