code: def get_attack_id(x: AttackTestTarget) -> str:
      return repr(x.attack)
  
file_path: foolbox/tests/test_attacks.py
imports: from typing import List, Optional, NamedTuple
  import pytest
  import eagerpy
  import foolbox
  import foolbox.attacks
  from foolbox.gradient_estimators import es_gradient_estimator
  from conftest import ModeAndDataAndDescription
label_desc: Use image node_id 1 for calling a global function with example usage: get_attack_id(x) and returns: repr