code: def _compute_val(self, xp):
      if type(self.val) is int:
          return self.val
      else:
          return xp.arange(numpy.prod(self.val)).reshape(self.val)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling the TestFillDiagonal obj's underlying member method code with example usage: obj._compute_val(xp) and returns: self, xp