code: def infinitedict(initial_value=None):
      """Create arbitrary levels of dictionary key/values"""
      initial_value = initial_value or {}
  
      # Recursively cast any subdictionary entries in the initial value to infinitedicts
      for key, value in initial_value.items():
          if isinstance(value, dict):
              initial_value[key] = infinitedict(value)
  
      return defaultdict(infinitedict, initial_value)
  
file_path: streamalert/streamalert_cli/terraform/common.py
imports: from collections import defaultdict
label_desc: Use image node_id 1 for calling a global function with example usage: infinitedict(initial_value) and returns: defaultdict