code: def fixture_propagate_logs() -> t.Generator[None, None, None]:
      """BentoML sets propagate to False by default, hence this fixture enable log propagation."""
      logger = logging.getLogger("bentoml")
      logger.propagate = True
      yield
      # restore propagate to False after tests
      logger.propagate = False
  
file_path: BentoML/tests/unit/conftest.py
imports: from __future__ import annotations
  import logging
  import typing
  from typing import TYPE_CHECKING
  import cloudpickle
  import pytest
  import yaml
  import bentoml
  from bentoml.testing.pytest import TEST_MODEL_CONTEXT
label_desc: Use image node_id 3 for calling a global function with example usage: fixture_propagate_logs() without return types