class_docstr: Tests for cleverhans.evaluation
class_docstr_tok: ["Tests","for","cleverhans.evaluation"]
docstr: test_cache: Test that _CorrectFactory can be cached
docstr_tok: ["test_cache",":","Test","that","_CorrectFactory","can","be","cached"]
code: def test_cache(self):
      """test_cache: Test that _CorrectFactory can be cached"""
      model = Model()
      factory_1 = _CorrectFactory(model)
      factory_2 = _CorrectFactory(model)
      cache = {}
      cache[factory_1] = True
      self.assertTrue(factory_2 in cache)
  
imports: from cleverhans.devtools.checks import CleverHansTest
  from cleverhans.evaluation import _CorrectFactory
  from cleverhans.model import Model
label_desc: Use image node_id 1 for calling the TestEvaluation obj's underlying member method code with example usage: obj.test_cache() without return types