code: def test_stream_export(self):
      a = cupy.empty(100)
  
      # the stream context should export the stream
      with self.stream:
          stream_ptr = a.__cuda_array_interface__["stream"]
  
      if self.stream is cupy.cuda.Stream.null:
          assert stream_ptr == stream_module.get_default_stream_ptr()
      elif self.stream is cupy.cuda.Stream.ptds:
          assert stream_ptr == 2
      else:
          assert stream_ptr == self.stream.ptr
  
      # without a stream context, it's always the default stream
      stream_ptr = a.__cuda_array_interface__["stream"]
      assert stream_ptr == stream_module.get_default_stream_ptr()
  
imports: import unittest
  import pytest
  from cupy_backends.cuda import stream
  import cupy
  from cupy import _core
  from cupy import testing
label_desc: Use image node_id 2 for calling the TestCUDAArrayInterfaceStream obj's underlying member method code with example usage: obj.test_stream_export() without return types