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_optimize_linear_l1_satisfies_norm_constraint(self):
      for eps in self.eps_list:
          eta = utils.optimize_linear(self.rand_grad, eps=eps, norm=1)
          norm = eta.abs().sum(dim=self.red_ind)
          self.assertTrue(
              torch.allclose(norm, eps * torch.ones_like(norm))
          )
  
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 7 for calling the TestOptimizeLinear obj's underlying member method code with example usage: obj.test_optimize_linear_l1_satisfies_norm_constraint() without return types