code: def _compute_relative_diff(actual, expected):
      """Computes relative difference between two matrices."""
      return np.linalg.norm(actual - expected) / np.linalg.norm(
          expected
      )
  
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 2 for calling a global function with example usage: _compute_relative_diff(actual, expected) and returns: unknown