code: def test_override_setup_logger(capsys):
      _setup_a_logger_and_dump(__name__, "test_override_setup_logger")
  
      source = capsys.readouterr().err.split("\n")
  
      assert (
          "tests.ignite.test_utils INFO: test_override_setup_logger"
          in source[0]
      )
  
      # change the logger level of _setup_a_logger_and_dump
      setup_logger(name=__name__, level=logging.WARNING, reset=True)
  
      _setup_a_logger_and_dump(__name__, "test_override_setup_logger")
  
      source = capsys.readouterr().err.split("\n")
  
      assert source[0] == ""
  
      # Needed by windows to release FileHandler in the loggers
      logging.shutdown()
  
file_path: ignite/tests/ignite/test_utils.py
imports: import logging
  import sys
  from collections import namedtuple
  import pytest
  import torch
  from packaging.version import Version
  from ignite.engine import Engine, Events
  from ignite.utils import convert_tensor, deprecated, hash_checkpoint, setup_logger, to_onehot
label_desc: Use image node_id 6 for calling a global function with example usage: test_override_setup_logger(capsys) without return types