code: def test_dunder_dlpack_stream(self):
      x = np.arange(5)
      x.__dlpack__(stream=None)
  
      with pytest.raises(RuntimeError):
          x.__dlpack__(stream=1)
  
file_path: numpy/numpy/_core/tests/test_dlpack.py
imports: import sys
  import pytest
  import numpy
  from numpy.testing import assert_array_equal, IS_PYPY
label_desc: Use image node_id 2 for calling the TestDLPack obj's underlying member method code with example usage: obj.test_dunder_dlpack_stream() without return types