code: def test_cast_to_float32_from_string():
      tensor = tf.constant(["0.3"], dtype=tf.string)
      assert tf.float32 == data_utils.cast_to_float32(tensor).dtype
  
file_path: autokeras/autokeras/utils/data_utils_test.py
imports: import numpy
  import pytest
  import tensorflow
  from autokeras.utils import data_utils
label_desc: Use image node_id 5 for calling a global function with example usage: test_cast_to_float32_from_string() without return types