code: def test_jax_array(
      *,
      dtype_and_x,
      as_list,
      copy,
      ndmin,
      on_device,
      fn_tree,
      test_flags,
      frontend,
      backend_fw,
  ):
      input_dtype, x = dtype_and_x
  
      if as_list:
          if isinstance(x, list) and "complex" not in input_dtype[0]:
              x = [
                  list(i) if len(i.shape) > 0 else [float(i)] for i in x
              ]
          else:
              x = list(x)
      else:
          if len(x) == 1:
              x = x[0]
  
      helpers.test_frontend_function(
          input_dtypes=input_dtype,
          backend_to_test=backend_fw,
          frontend=frontend,
          test_flags=test_flags,
          fn_tree=fn_tree,
          on_device=on_device,
          object=x,
          dtype=input_dtype[0],
          copy=copy,
          order="K",
          ndmin=ndmin,
      )
  
imports: from hypothesis import strategies
  from ivy_tests.test_ivy.test_frontends.test_numpy.test_creation_routines.test_from_shape_or_value import _input_fill_and_dtype
  from ivy_tests.test_ivy.test_functional.test_core.test_creation import _get_dtype_buffer_count_offset
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 3 for calling a global function with example usage: test_jax_array() without return types