code: def test_running_on_vec(device, def_cls):
      _run_data_model_defense(
          vecdata, vecmodel, def_cls(**defense_kwargs[def_cls]), device
      )
  
file_path: advertorch/tests/test_defenses_running.py
imports: import itertools
  import pytest
  import torch
  import torch.nn
  from advertorch.test_utils import vecdata
  from advertorch.test_utils import vecmodel
  from advertorch.test_utils import imgdata
  from advertorch.test_utils import imgmodel
  from advertorch.test_utils import general_input_defenses
  from advertorch.test_utils import image_only_defenses
  from advertorch.test_utils import withgrad_defenses
  from advertorch.test_utils import nograd_defenses
  from advertorch.test_utils import defense_kwargs
  from advertorch.test_utils import defense_data
label_desc: Use image node_id 2 for calling a global function with example usage: test_running_on_vec(device, def_cls) without return types