class_docstr: A unittest class for testing the Rounded postprocessor.
class_docstr_tok: ["A","unittest","class","for","testing","the","Rounded","postprocessor","."]
docstr: Test with 2 decimal places.
docstr_tok: ["Test","with","2","decimal","places","."]
code: def test_decimals_2(self):
      """
      Test with 2 decimal places.
      """
      (_, _), (x_test, _) = self.mnist
      preds = self.classifier.predict(x_test[0:1])
      postprocessor = Rounded(decimals=2)
      post_preds = postprocessor(preds=preds)
  
      expected_predictions = np.asarray(
          [[0.12, 0.05, 0.1, 0.06, 0.11, 0.05, 0.06, 0.31, 0.08, 0.06]],
          dtype=np.float32,
      )
      np.testing.assert_array_equal(post_preds, expected_predictions)
  
file_path: adversarial-robustness-toolbox/tests/defences/test_rounded.py
imports: import logging
  import unittest
  import numpy
  from art.defences.postprocessor import Rounded
  from art.utils import load_dataset
  from tests.utils import master_seed, get_image_classifier_kr
label_desc: Use image node_id 3 for calling the TestRounded obj's underlying member method code with example usage: obj.test_decimals_2() without return types