code: def log_msg(msg, log=True, silent=False):
      if log:
          logging.debug(msg)
      if not silent:
          print(msg)
  
imports: import fnmatch
  import json
  import logging
  import random
  import re
  import subprocess
  import traceback
  from os import listdir, makedirs, walk
  from os.path import basename, exists, isfile, join, splitext
  import matplotlib.pyplot
  import numpy
  from pydub import AudioSegment
  from dejavu.config.settings import DEFAULT_FS, DEFAULT_OVERLAP_RATIO, DEFAULT_WINDOW_SIZE, HASHES_MATCHED, OFFSET, RESULTS, SONG_NAME, TOTAL_TIME
  from dejavu.logic.decoder import get_audio_name_from_path
label_desc: Use image node_id 6 for calling a global function with example usage: log_msg(msg, log, silent) without return types