def _import_new_first_deprecated_second():
    """To ensure that module_a gets initialized only once.

    It is the same as _import_deprecated_first_new_second just with different import order.
    See that for more details.
    """
    from cirq.testing._compat_test_data.module_a import module_b

    assert module_b.MODULE_B_ATTRIBUTE == 'module_b'

    # the DeprecatedModuleLoader should set the ref only for module_a
    assert 'cirq.testing._compat_test_data.fake_a' not in sys.modules
    assert 'cirq.testing._compat_test_data.module_a' in sys.modules

    from cirq.testing._compat_test_data.fake_a import module_b

    assert 'cirq.testing._compat_test_data.fake_a' in sys.modules
    assert (
        sys.modules['cirq.testing._compat_test_data.fake_a']
        == sys.modules['cirq.testing._compat_test_data.module_a']
    )

    assert module_b.MODULE_B_ATTRIBUTE == 'module_b'
To ensure that module_a gets initialized only once.

    It is the same as _import_deprecated_first_new_second just with different import order.
    See that for more details.
    
cirq-core/cirq/_compat_test.py