code: def _make_diag(diag):
      diag.sort()
      diag = diag[::-1]
      return np.diag(diag), diag
  
imports: import functools
  import re
  import os
  import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import scipy.linalg
  import scipy.sparse
  import jax
  from jax import config
  from jax._src import test_util
  from jax.experimental.sparse import linalg, bcoo
  import jax.numpy
label_desc: Use image node_id 5 for calling a global function with example usage: _make_diag(diag) and returns: np,  diag