def visualize(data, exploitOnly=False, filters={}, display="web"):
  # do the filtering on the data
  for system in data['systems']:
    if 'cpes' in system:
      for cpe in system['cpes']:
        cpe['cves']=filter(cpe['cves'], exploitOnly, filters)
    for service in system['services']:
      if "cves" in service:
        service['cves']=filter(service['cves'], exploitOnly, filters)
  # display using the correct method
  try:
    if not display in visuals.keys():
      sys.exit("Could not visualize: Unknown display (%s)"%display)
    # try to import requirements
    try:
      exec(visuals[display]['import'])
    except:
      sys.exit("Could not visualize due to missing dependencies")
    exec(visuals[display]['exec'])
  except __HOLE__:
    pass
dataset/ETHPy150Open NorthernSec/CVE-Scan/bin/visualizer.py/visualize