code: def safe_json_loads(data):
      """Safely load a JSON string into a dictionary
  
      Args:
          data (str): A JSON string
  
      Returns:
          dict: The loaded JSON string or empty dict
      """
      try:
          return json.loads(data)
      except ValueError:
          return {}
  
file_path: streamalert/rules/helpers/base.py
imports: from fnmatch import fnmatch
  import logging
  import json
  import random
  import time
  import pathlib2
  from streamalert.shared.utils import get_first_key, get_keys, in_network, valid_ip
label_desc: Use image node_id 11 for calling a global function with example usage: safe_json_loads(data) and returns: json, dict