how to write complex filters for fixtures

fixtures = [
   {"dt": "Custom DocPerm", "filters": [["role", "in", ["Credit Claims Manager", "Credit Claims User", "Accounts User"]]]},
]

this is how i am getting the permissions in frappe for a roles Credit Claims Manager", “Credit Claims User”, “Accounts User”

so how can i write filter so that permissions of roles “Credit Claims Manager”, “Credit Claims User” is taken and among all permissions of role “Accounts User” only those of doctypes Insurance and Bank should be exported

That for, you can use the Custom DocPerm in fixtures.

Reference:

I think the only way would be to add the individual names of the custom docperm.

filters={"name":["in",[]]}