code: def _testBasicOpsImpl(self):
      d = self.buildCollection(10)
      self.assertEqual(len(d), 0)
      self.assertEqual(d.getMaxLen(), 10)
  
      for i in xrange(10):
          d.append(i)
      self.assertEqual(d[0], 0)
      self.assertEqual(d[9], 9)
      self.assertEqual(d[-1], 9)
      self.assertEqual(d[-2], 8)
  
      for i in xrange(3):
          d.append(i)
      self.assertEqual(len(d), 10)
      self.assertEqual(d[0], 3)
      self.assertEqual(d[9], 2)
      self.assertEqual(d[-1], 2)
      self.assertEqual(d[-2], 1)
  
imports: import datetime
  from six.moves import xrange
  from .None import common
  from pyalgotrade import utils
  from pyalgotrade.utils import collections
  from pyalgotrade.utils import dt
label_desc: Use image node_id 2 for calling the CollectionTestCaseBase obj's underlying member method code with example usage: obj._testBasicOpsImpl() without return types