def _repeated_import_path():
    """to ensure that the highly unlikely repeated subpath import doesn't interfere"""

    # pylint: disable=line-too-long
    from cirq.testing._compat_test_data.repeated_child.cirq.testing._compat_test_data.repeated_child import (  # type: ignore
        child,
    )

    assert child.CHILD_ATTRIBUTE == 'child'
to ensure that the highly unlikely repeated subpath import doesn't interfere
cirq-core/cirq/_compat_test.py