code: def _get_details(with_wait=False):
      """Return a details dict that conforms to what the backoff handlers expected
  
      Only the on_backoff handler will contain a 'wait' value
      """
      details = {
          "elapsed": 1.2345,
          "tries": 3,
          "target": Mock(__name__="func"),
      }
      if with_wait:
          details["wait"] = 1.0
      return details
  
file_path: streamalert/tests/unit/streamalert/shared/test_backoff_handlers.py
imports: from mock import Mock, patch
  from streamalert.shared.backoff_handlers import backoff_handler, giveup_handler, success_handler
label_desc: Use image node_id 1 for calling a global function with example usage: _get_details(with_wait) and returns: details