code: def test_diag_indices_from(self, xp):
      arr = testing.shaped_arange(self.shape, xp)
      return 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 TestDiagIndicesFrom obj's underlying member method code with example usage: obj.test_diag_indices_from(xp) and returns: xp