class_docstr: Identical to the TestOptimizeLinear in tests_tf/test_attacks.
class_docstr_tok: ["Identical","to","the","TestOptimizeLinear","in","tests_tf\/test_attacks","."]
code: def test_clip_eta_l2(self):
      clipped = self.clip_eta(eta=self.rand_eta, norm=2, eps=0.5)
      norm = clipped.pow(2).sum(dim=self.red_ind).pow(0.5)
      self.assertTrue(torch.all(norm <= 0.5001))
  
file_path: cleverhans/cleverhans/torch/tests/test_utils.py
imports: import numpy
  import torch
  import cleverhans.torch.utils
  from cleverhans.devtools.checks import CleverHansTest
label_desc: Use image node_id 11 for calling the TestOptimizeLinear obj's underlying member method code with example usage: obj.test_clip_eta_l2() without return types