code: def _check_symmetry(x: jax.Array) -> bool:
      """Check if the array is symmetric."""
      m, n = x.shape
      eps = jnp.finfo(x.dtype).eps
      tol = 50.0 * eps
      is_hermitian = False
      if m == n:
          if np.linalg.norm(x - x.T.conj()) / np.linalg.norm(x) < tol:
              is_hermitian = True
  
      return is_hermitian
  
file_path: jax/tests/qdwh_test.py
imports: import functools
  import jax
  import jax.numpy
  import numpy
  import scipy.linalg
  from jax._src import config
  from jax._src import test_util
  from jax._src.lax import qdwh
  from absl.testing import absltest
label_desc: Use image node_id 1 for calling a global function with example usage: _check_symmetry(x) and returns: is_hermitian