def test__find_in_array_by_regex_object(self):
        bob = {'name': 'bob', 'text': ['abcd', 'cde']}
        sam = {'name': 'sam', 'text': ['bde']}
        self.cmp.do.insert(bob)
        self.cmp.do.insert(sam)
        regex = re.compile('^a')
        self.cmp.compare_ignore_order.find({"text": regex})
        regex = re.compile('e$')
        self.cmp.compare_ignore_order.find({"text": regex})
        regex = re.compile('bde|cde')
        self.cmp.compare_ignore_order.find({"text": regex})
Regression for #12168: models split into subpackages still get M2M
dataset/ETHPy150Open vmalloc/mongomock/tests/test__mongomock.py/MongoClientCollectionTest.test__find_in_array_by_regex_object--crossover with--dataset/ETHPy150Open django/django/tests/model_package/tests.py/ModelPackageTests.test_m2m_tables_in_subpackage_models