code: def test_non_equal_dims(self):
      for xp in (numpy, cupy):
          arr = testing.shaped_arange(self.shape, xp)
          with pytest.raises(ValueError):
              xp.diag_indices_from(arr)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling the TestDiagIndicesFromRaises obj's underlying member method code with example usage: obj.test_non_equal_dims() without return types