In pure postgres we can write:
SELECT * FROM my_table WHERE 10000 = ANY (array_field);
or
SELECT * FROM my_table WHERE 10000 = ALL (array_field);
How to do the same with the help of sqlalchemy without raw sql?