code: def matrix_power(
      x: np.ndarray, n: int, /, *, out: Optional[np.ndarray] = None
  ) -> np.ndarray:
      return np.linalg.matrix_power(x, n)
  
imports: from collections import namedtuple
  from typing import Union, Optional, Tuple, Literal, List, NamedTuple, Sequence
  import numpy
  import ivy
  from ivy import inf
  from ivy.func_wrapper import with_unsupported_dtypes
  from ivy.functional.backends.numpy.helpers import _scalar_output_to_0d_array
  from .None import backend_version
label_desc: Use image node_id 11 for calling a global function with example usage: matrix_power() and returns: np