docstr: Test sequential slices with variadic module.
docstr_tok: ["Test","sequential","slices","with","variadic","module","."]
code: def test_slice(self):
      """Test sequential slices with variadic module."""
  
      class MyModule:
          def __init__(self, m):
              self.m = m
  
          def __call__(self, x, y):
              return self.m * x + y, self.m * x - y
  
      seq = objax.nn.Sequential([MyModule(2), MyModule(3)])
      self.assertEqual(seq(5, 7), (54, 48))
      self.assertEqual(seq[:1](5, 7), (17, 3))
      self.assertEqual(seq[1:](5, 7), (22, 8))
  
file_path: objax/tests/sequential.py
imports: import unittest
  import jax.numpy
  import objax
label_desc: Use image node_id 5 for calling the TestSequential obj's underlying member method code with example usage: obj.test_slice() and returns: unknown,  unknown