code: def test_lazy_stream(self):
      # lazy streams should be iterable
      def ls():
          # Also tests if set_stream_info works correctly
          for el in [
              CLExperience(0, None),
              CLExperience(0, None),
              CLExperience(0, None),
          ]:
              yield el
  
      s = CLStream("a", ls(), None, set_stream_info=True)
      for i, el in enumerate(s):
          assert el.current_experience == i
          assert el.origin_stream == s
  
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 3 for calling the StreamTests obj's underlying member method code with example usage: obj.test_lazy_stream() without return types