docstr: Test the attack.
docstr_tok: ["Test","the","attack","."]
code: def test_run_attack_helper(self):
      """Test the attack."""
      results = tf_estimator_evaluation.run_attack_helper(
          self.classifier,
          self.input_fn_train,
          self.input_fn_test,
          self.train_labels,
          self.test_labels,
          self.sample_weight_train,
          self.sample_weight_test,
          attack_types=[data_structures.AttackType.THRESHOLD_ATTACK],
      )
      self.assertIsInstance(results, data_structures.AttackResults)
      (
          att_types,
          att_slices,
          att_metrics,
          att_values,
      ) = data_structures.get_flattened_attack_metrics(results)
      self.assertLen(att_types, 3)
      self.assertLen(att_slices, 3)
      self.assertLen(att_metrics, 3)
      self.assertLen(att_values, 3)
  
file_path: privacy/tensorflow_privacy/privacy/privacy_tests/membership_inference_attack/tf_estimator_evaluation_test.py
imports: from absl.testing import absltest
  import numpy
  import tensorflow
  from tensorflow import estimator
  from tensorflow.compat.v1 import estimator
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack import data_structures
  from tensorflow_privacy.privacy.privacy_tests.membership_inference_attack import tf_estimator_evaluation
label_desc: Use image node_id 3 for calling the UtilsTest obj's underlying member method code with example usage: obj.test_run_attack_helper() without return types