code: def as_float_array(X, *, copy=True, force_all_finite=True):
      if X.dtype in [ivy.float32, ivy.float64]:
          return X.copy_array() if copy else X
      if (
          "bool" in X.dtype or "int" in X.dtype or "uint" in X.dtype
      ) and ivy.itemsize(X) <= 4:
          return_dtype = ivy.float32
      else:
          return_dtype = ivy.float64
      return ivy.asarray(X, dtype=return_dtype)
  
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_unsupported_dtypes
label_desc: Use image node_id 1 for calling a global function with example usage: as_float_array(X) and returns: ivy, unknown