class_docstr: This service helps queries generate dynamic parameters.
class_docstr_tok: ["This","service","helps","queries","generate","dynamic","parameters","."]
code: def generate_advanced(self, key, configuration):
      if callable(configuration):
          return configuration(self._clock.now)
  
      # else, default to whatever generate returns
      return self.generate(key)
  
imports: from datetime import timedelta
  from streamalert.scheduled_queries.support.clock import Clock
label_desc: Use image node_id 3 for calling the QueryParameterGenerator obj's underlying member method code with example usage: obj.generate_advanced(key, configuration) and returns: self, configuration