code: def __init__(self):
      self.failed_attacks = 0
      self.skipped_attacks = 0
      self.successful_attacks = 0
  
      self.all_metrics = {}
  
file_path: TextAttack/textattack/metrics/attack_metrics/attack_success_rate.py
imports: from textattack.attack_results import FailedAttackResult, SkippedAttackResult
  from textattack.metrics import Metric
label_desc: Use image node_id 1 to create a new AttackSuccessRate object from inherited base classes: Metric with example: obj = AttackSuccessRate()