code: def testResize2(self):
      ds = dataseries.SequenceDataSeries()
      for i in xrange(100):
          ds.append(i)
  
      ds.setMaxLen(1000)
      self.assertEqual(len(ds), 100)
      self.assertEqual(len(ds.getDateTimes()), 100)
      self.assertEqual(ds[0], 0)
      self.assertEqual(ds[-1], 99)
  
      ds.setMaxLen(10000)
      self.assertEqual(len(ds), 100)
      self.assertEqual(len(ds.getDateTimes()), 100)
      self.assertEqual(ds[0], 0)
      self.assertEqual(ds[-1], 99)
  
      ds.setMaxLen(10)
      self.assertEqual(len(ds), 10)
      self.assertEqual(len(ds.getDateTimes()), 10)
      self.assertEqual(ds[0], 90)
      self.assertEqual(ds[-1], 99)
  
imports: import datetime
  from six.moves import xrange
  from .None import common
  from pyalgotrade import dataseries
  from pyalgotrade.dataseries import bards
  from pyalgotrade.dataseries import aligned
  from pyalgotrade import bar
label_desc: Use image node_id 6 for calling the TestSequenceDataSeries obj's underlying member method code with example usage: obj.testResize2() without return types