code: def test_set_logger_formatter_new_handler(log_mock):
      """Shared - Set Logger Formatter, New Handler"""
      logger = logging.getLogger("test")  # non-root logger
  
      # Hack because nosetests uses a `MyMemoryHandler` that is attached to loggers
      log_mock.return_value = False
  
      # Set the formatter on the logger that does not have any existing handlers
      set_formatter(logger)
  
      assert_is_instance(logger.handlers[0].formatter, LogFormatter)
  
file_path: streamalert/tests/unit/streamalert/shared/test_logger.py
imports: import logging
  import os
  from mock import patch
  from nose.tools import assert_equal, assert_is_instance
  from streamalert.shared.logger import get_logger, LogFormatter, set_formatter
label_desc: Use image node_id 6 for calling a global function with example usage: test_set_logger_formatter_new_handler(log_mock) without return types