def METHOD_NAME(msg: str):
    """
    In production, has no effect.
    In tests, asserts that the current call is not inside of any transaction.
    If you are getting bitten by calls to this function in tests, move your service calls outside of any active
    transaction -- they can't realistically share the wrapping transaction, and in the worst case the indefinite
    execution time can have cause major performance issues by holding transactional resources open for long periods
    of time.
    """
    if not in_test_environment() or not in_test_transaction_enforcement.enabled:
        return
    from sentry.testutils import hybrid_cloud  # NOQA:S007
    for conn in connections.all():
        assert not hybrid_cloud.simulated_transaction_watermarks.connection_transaction_depth_above_watermark(
            connection=conn
        ), msg