code: def _get_hermitian(xp, a, UPLO):
      if UPLO == "U":
          return xp.triu(a) + xp.triu(a, 1).swapaxes(-2, -1).conj()
      else:
          return xp.tril(a) + xp.tril(a, -1).swapaxes(-2, -1).conj()
  
imports: import numpy
  import pytest
  import cupy
  from cupy.cuda import driver
  from cupy.cuda import runtime
  from cupy import testing
label_desc: Use image node_id 1 for calling a global function with example usage: _get_hermitian(xp, a, UPLO) and returns: unknown, unknown