code: def test_stream_slicing(self):
      # streams should be sliceable
      s = EagerCLStream(
          "a",
          [
              CLExperience(0, None),
              CLExperience(1, None),
              CLExperience(2, None),
          ],
          None,
      )
  
      ss = s[1:2]
      assert len(ss) == 1
      ss[0].current_experience
  
      ss = s[:2]
      assert len(ss) == 2
      ss = s[1:]
      assert len(ss) == 2
  
file_path: avalanche/tests/benchmarks/scenarios/test_generic_scenario.py
imports: import unittest
  from avalanche.benchmarks.scenarios.generic_scenario import CLExperience, EagerCLStream, CLScenario, CLStream, MaskedAttributeError
label_desc: Use image node_id 2 for calling the StreamTests obj's underlying member method code with example usage: obj.test_stream_slicing() without return types