code: def _generate_basic_benchmark_str(
      model,
      loader,
      attack_class,
      attack_kwargs,
      num,
      accuracy,
      attack_success_rate,
  ):
      rval = ""
      rval += "# attack type: {}\n".format(attack_class.__name__)
  
      prefix = " attack kwargs: "
      count = 0
      for key in attack_kwargs:
          this_prefix = prefix if count == 0 else " " * len(prefix)
          count += 1
          rval += "#{}{}={}\n".format(
              this_prefix, key, attack_kwargs[key]
          )
  
      rval += "# data: {}, {} samples\n".format(loader.name, num)
      rval += "# model: {}\n".format(model.name)
      rval += "# accuracy: {}%\n".format(accuracy)
      rval += "# attack success rate: {}%\n".format(attack_success_rate)
      return rval
  
file_path: advertorch/advertorch_examples/benchmark_utils.py
imports: import os
  import sys
  import torch
  import torchvision
  import advertorch
  from advertorch.attacks.utils import multiple_mini_batch_attack
label_desc: Use image node_id 3 for calling a global function with example usage: _generate_basic_benchmark_str(model, loader, attack_class, attack_kwargs, num, accuracy, attack_success_rate) and returns: rval