code: def test_diagonal_invalid1(self):
      for xp in (numpy, cupy):
          a = testing.shaped_arange((3, 3, 3), xp)
          with pytest.raises(IndexError):
              a.diagonal(0, 1, 3)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 22 for calling the TestIndexing obj's underlying member method code with example usage: obj.test_diagonal_invalid1() without return types