code: def test_running_label_attacks_on_vec(device, criterion, att_cls):
      _run_data_model_criterion_label_attack(
          vecdata, veclabel, vecmodel, criterion, att_cls, device
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import math
  import pytest
  import itertools
  import torch
  import torch.nn
  from advertorch.attacks import GradientSignAttack
  from advertorch.attacks import GradientAttack
  from advertorch.attacks import L2BasicIterativeAttack
  from advertorch.attacks import LinfBasicIterativeAttack
  from advertorch.attacks import L1PGDAttack
  from advertorch.attacks import L2PGDAttack
  from advertorch.attacks import LinfPGDAttack
  from advertorch.attacks import SparseL1DescentAttack
  from advertorch.attacks import MomentumIterativeAttack
  from advertorch.attacks import FastFeatureAttack
  from advertorch.attacks import CarliniWagnerL2Attack
  from advertorch.attacks import DDNL2Attack
  from advertorch.attacks import ElasticNetL1Attack
  from advertorch.attacks import LBFGSAttack
  from advertorch.attacks import JacobianSaliencyMapAttack
  from advertorch.attacks import SpatialTransformAttack
  from advertorch.attacks import LinfSPSAAttack
  from advertorch.attacks import LinfFABAttack
  from advertorch.attacks import L2FABAttack
  from advertorch.attacks import L1FABAttack
  from advertorch.attacks import DeepfoolLinfAttack
  from advertorch.utils import CarliniWagnerLoss
  from advertorch.utils import torch_allclose
  from advertorch.attacks import LinfGenAttack
  from advertorch.attacks import L2GenAttack
  from advertorch.attacks import LinfNAttack
  from advertorch.attacks import L2NAttack
  from advertorch.attacks import BanditAttack
  from advertorch.attacks import NESAttack
  from advertorch.test_utils import NUM_CLASS
  from advertorch.test_utils import BATCH_SIZE
  from advertorch.test_utils import batch_consistent_attacks
  from advertorch.test_utils import general_input_attacks
  from advertorch.test_utils import image_only_attacks
  from advertorch.test_utils import label_attacks
  from advertorch.test_utils import feature_attacks
  from advertorch.test_utils import targeted_only_attacks
  from advertorch.test_utils import vec_eps_attacks
  from advertorch.test_utils import vecdata
  from advertorch.test_utils import veclabel
  from advertorch.test_utils import vecmodel
  from advertorch.test_utils import imgdata
  from advertorch.test_utils import imglabel
  from advertorch.test_utils import imgmodel
label_desc: Use image node_id 3 for calling a global function with example usage: test_running_label_attacks_on_vec(device, criterion, att_cls) without return types