def METHOD_NAME(caplog, setting_value, parent_value):
    @flow
    def test_subflow():
        print("hello world!")
    @flow(log_prints=parent_value)
    def parent_flow():
        return test_subflow()
    # Note: The setting should have no affect here
    with temporary_settings({PREFECT_LOGGING_LOG_PRINTS: setting_value}):
        parent_flow()
    assert ("hello world!" in caplog.text) is parent_value