code: def test_jax_diag_indices_from(
      dtype_x,
      test_flags,
      frontend,
      backend_fw,
      fn_tree,
      on_device,
  ):
      dtype, x = dtype_x
      helpers.test_frontend_function(
          input_dtypes=dtype,
          backend_to_test=backend_fw,
          test_flags=test_flags,
          frontend=frontend,
          fn_tree=fn_tree,
          on_device=on_device,
          arr=x[0],
      )
  
imports: from hypothesis import strategies, assume
  import numpy
  import ivy
  from jax.numpy import tril, triu, r_, c_
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test, BackendHandler
  from ...test_numpy.test_indexing_routines.test_inserting_data_into_arrays import _helper_r_, _helper_c_
  import ivy.functional.frontends.jax.numpy
label_desc: Use image node_id 8 for calling a global function with example usage: test_jax_diag_indices_from(dtype_x, test_flags, frontend, backend_fw, fn_tree, on_device) without return types