code: def test_mutliple_targets(dst1=None, dst2=None):
      ok_(not exists(dst1))
      ok_(not exists(dst2))
      lgr = LoggerHelper("dataladtest-3").get_initialized_logger(
          logtarget="%s,%s" % (dst1, dst2)
      )
      ok_(exists(dst1))
      ok_(exists(dst2))
  
      msg = "Oh my god, they killed Kenny"
      lgr.error(msg)
      for dst in (dst1, dst2):
          with open(dst) as f:
              lines = f.readlines()
          assert_equal(
              len(lines),
              1,
              "Read more than a single log line: %s" % lines,
          )
          ok_(msg in lines[0])
      # Close all handlers so windows is happy -- apparently not closed fast enough
      for handler in lgr.handlers:
          handler.close()
  
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 3 for calling a global function with example usage: test_mutliple_targets(dst1, dst2) without return types