code: def check_filters(name):
      with swallow_logs(new_level=logging.DEBUG, name=name) as cml:
          lgr1 = logging.getLogger(name + ".goodone")
          lgr2 = logging.getLogger(name + ".anotherone")
          lgr3 = logging.getLogger(name + ".bad")
          lgr1.debug("log1")
          lgr2.info("log2")
          lgr3.info("log3")
          assert_in("log1", cml.out)
          assert_in("log2", cml.out)
          assert_not_in("log3", cml.out)
  
imports: import inspect
  import logging
  import os.path
  from logging import makeLogRecord
  from os.path import exists
  from unittest.mock import patch
  from datalad import cfg
  from datalad.log import ColorFormatter, LoggerHelper, TraceBack, log_progress, with_progress, with_result_progress
  from datalad.support import ansi_colors
  from datalad.support.constraints import EnsureBool
  from datalad.tests.utils_pytest import SkipTest, assert_equal, assert_in, assert_no_open_files, assert_not_in, assert_re_in, known_failure_githubci_win, ok_, ok_endswith, ok_generator, swallow_logs, with_tempfile
  from datalad.utils import on_windows
label_desc: Use image node_id 4 for calling a global function with example usage: check_filters(name) without return types