def METHOD_NAME(caplog, setting_value, parent_value):
    @task
    def test_task():
        print("hello world!")
    @flow(log_prints=parent_value)
    def parent_flow():
        test_task()
    # 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