code: def logger():
      parent = logging.getLogger(__name__)
      parent.propagate = False
      yield parent
  
      parent.propagate = True
  
imports: from __future__ import annotations
  import logging
  import sys
  import warnings
  from unittest import mock
  import pytest
  from airflow.utils.log.logging_mixin import LoggingMixin, SetContextPropagate, StreamLogWriter, set_context
label_desc: Use image node_id 1 for calling a global function with example usage: logger() without return types