code: def test_matrix_power_batched(self, xp, dtype, shape, n):
      a = testing.shaped_arange(shape, xp, dtype)
      a += xp.identity(shape[-1], dtype)
      return xp.linalg.matrix_power(a, n)
  
imports: import unittest
  import numpy
  import pytest
  import cupy
  from cupy import testing
label_desc: Use image node_id 1 for calling the TestMatrixPowerBatched obj's underlying member method code with example usage: obj.test_matrix_power_batched(xp, dtype, shape, n) and returns: xp