code: def test_sklearn_as_float_array(
      dtype_and_x,
      on_device,
      fn_tree,
      frontend,
      test_flags,
      backend_fw,
  ):
      dtypes, x = dtype_and_x
      helpers.test_frontend_function(
          input_dtypes=dtypes,
          backend_to_test=backend_fw,
          test_flags=test_flags,
          fn_tree=fn_tree,
          frontend=frontend,
          on_device=on_device,
          X=x[0],
      )
  
imports: from hypothesis import strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 1 for calling a global function with example usage: test_sklearn_as_float_array(dtype_and_x, on_device, fn_tree, frontend, test_flags, backend_fw) without return types