code: def cast_to_string(tensor):
      if tensor.dtype == tf.string:
          return tensor
      return tf.strings.as_string(tensor)
  
file_path: autokeras/autokeras/utils/data_utils.py
imports: import numpy
  import tensorflow
  from tensorflow import nest
label_desc: Use image node_id 6 for calling a global function with example usage: cast_to_string(tensor) and returns: tf, tensor