docstr: StreamQuery - QueryParameterGenerator - generate_advanced - Function
docstr_tok: ["StreamQuery","-","QueryParameterGenerator","-","generate_advanced","-","Function"]
code: def test_generate_advanced_function(self):
      """StreamQuery - QueryParameterGenerator - generate_advanced - Function"""
  
      def thing(date):
          return date.strftime("%Y-%m-%d-%H-%I-%S")
  
      assert_equals(
          self._generator.generate_advanced("thing", thing),
          "2019-01-01-01-01-01",
      )
  
imports: from datetime import datetime, timezone
  from mock import MagicMock, patch
  from nose.tools import assert_equals, assert_false, assert_true
  from streamalert.scheduled_queries.query_packs.manager import QueryPack, QueryPacksManager, QueryPackExecutionContext, QueryPacksManagerFactory
  from streamalert.scheduled_queries.query_packs.parameters import QueryParameterGenerator
label_desc: Use image node_id 12 for calling the TestQueryParameterGenerator obj's underlying member method code with example usage: obj.test_generate_advanced_function() and returns: date