code: def test_diagonal(
      *,
      dtype_x,
      offset,
      axes,
      test_flags,
      backend_fw,
      fn_name,
      on_device,
  ):
      dtype, x = dtype_x
      helpers.test_function(
          input_dtypes=dtype,
          test_flags=test_flags,
          backend_to_test=backend_fw,
          fn_name=fn_name,
          on_device=on_device,
          x=x[0],
          offset=offset,
          axis1=axes[0],
          axis2=axes[1],
      )
  
imports: import sys
  import numpy
  from hypothesis import assume, strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_test, BackendHandler
  from ivy_tests.test_ivy.helpers.hypothesis_helpers.general_helpers import matrix_is_stable
label_desc: Use image node_id 14 for calling a global function with example usage: test_diagonal() without return types