code: def test_cast_to_float32_return_float32_tensor(tmp_path):
      layer = layer_module.CastToFloat32()
  
      tensor = layer(tf.constant(["0.3"], dtype=tf.string))
  
      assert tf.float32 == tensor.dtype
  
file_path: autokeras/autokeras/keras_layers_test.py
imports: import os
  import numpy
  import tensorflow
  from tensorflow import keras
  from autokeras import keras_layers
label_desc: Use image node_id 6 for calling a global function with example usage: test_cast_to_float32_return_float32_tensor(tmp_path) without return types