def _dir_is_still_valid_inner():
    """to ensure that create_attribute=True keeps the dir(module) intact"""

    import cirq.testing._compat_test_data as mod

    for m in ['fake_a', 'logging', 'module_a']:
        assert m in dir(mod)
to ensure that create_attribute=True keeps the dir(module) intact
cirq-core/cirq/_compat_test.py