code: def testListWithEvictedInStructIndexing(self):
      a = schema.ListWithEvicted(schema.Scalar(dtype=str))
      s = schema.Struct(
          ("field1", schema.Scalar(dtype=np.int32)), ("field2", a)
      )
      self.assertEqual(s["field2:lengths"], a.lengths)
      self.assertEqual(s["field2:values"], a.items)
      self.assertEqual(s["field2:_evicted_values"], a._evicted_values)
      with self.assertRaises(KeyError):
          s["fields2:items:non_existent"]
      with self.assertRaises(KeyError):
          s["fields2:non_existent"]
  
imports: from caffe2.python import core, schema
  import numpy
  import unittest
  import pickle
  import random
label_desc: Use image node_id 10 for calling the TestDB obj's underlying member method code with example usage: obj.testListWithEvictedInStructIndexing() without return types