code: def testSeqLikeOps(self):
      seq = list(xrange(10))
      ds = dataseries.SequenceDataSeries()
      for value in seq:
          ds.append(value)
  
      # Test length and every item.
      self.assertEqual(len(ds), len(seq))
      for i in xrange(len(seq)):
          self.assertEqual(ds[i], seq[i])
  
      # Test negative indices
      self.assertEqual(ds[-1], seq[-1])
      self.assertEqual(ds[-2], seq[-2])
      self.assertEqual(ds[-9], seq[-9])
  
      # Test slices
      sl = slice(0, 1, 2)
      self.assertEqual(ds[sl], seq[sl])
      sl = slice(0, 9, 2)
      self.assertEqual(ds[sl], seq[sl])
      sl = slice(0, -1, 1)
      self.assertEqual(ds[sl], seq[sl])
  
      for i in xrange(-100, 100):
          self.assertEqual(ds[i:], seq[i:])
  
      for step in xrange(1, 10):
          for i in xrange(-100, 100):
              self.assertEqual(ds[i::step], seq[i::step])
  
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 3 for calling the TestSequenceDataSeries obj's underlying member method code with example usage: obj.testSeqLikeOps() without return types