code: def inject_print_functions(module_name=None, module_prefix='[???]',
                             DEBUG=False, module=None):
      module = _get_module(module_name, module)
      if SILENT:
          def print(*args):
              pass
          def printDBG(*args):
              pass
          def print_(*args):
              pass
      else:
          if DEBUG_PRINT:
              def print(*args):
                  from utool._internal.meta_util_dbg import get_caller_name
                  calltag = ''.join(('[caller:', get_caller_name(N=DEBUG_PRINT_N), ']' ))
                  util_logging._utool_print()(calltag, *args)
          else:
              def print(*args):
                  util_logging._utool_print()(*args)
          if __AGGROFLUSH__:
              def print_(*args):
                  util_logging._utool_write()(*args)
                  util_logging._utool_flush()()
          else:
              def print_(*args):
                  util_logging._utool_write()(*args)
          dotpos = module.__name__.rfind('.')
          if dotpos == -1:
              module_name = module.__name__
          else:
              module_name = module.__name__[dotpos + 1:]
          def _replchars(str_):
              return str_.replace('_', '-').replace(']', '').replace('[', '')
          flag1 = '--debug-%s' % _replchars(module_name)
          flag2 = '--debug-%s' % _replchars(module_prefix)
          DEBUG_FLAG = any([flag in sys.argv for flag in [flag1, flag2]])
          for curflag in ARGV_DEBUG_FLAGS:
              if curflag in module_prefix:
                  DEBUG_FLAG = True
          if __DEBUG_ALL__ or DEBUG or DEBUG_FLAG:
              print('INJECT_PRINT: %r == %r' % (module_name, module_prefix))
              def printDBG(*args):
                  msg = ', '.join(map(str, args))
                  util_logging.__UTOOL_PRINTDBG__(module_prefix + ' DEBUG ' + msg)
          else:
              def printDBG(*args):
                  pass
      print_funcs = (print, print_, printDBG)
      return print_funcs