code: def test_structured_data_infer_col_types():
      analyser = input_analysers.StructuredDataAnalyser(
          column_names=test_utils.COLUMN_NAMES,
          column_types=None,
      )
      x = pd.read_csv(test_utils.TRAIN_CSV_PATH)
      x.pop("survived")
      dataset = tf.data.Dataset.from_tensor_slices(
          x.values.astype(str)
      ).batch(32)
  
      for data in dataset:
          analyser.update(data)
      analyser.finalize()
  
      assert analyser.column_types == test_utils.COLUMN_TYPES
  
file_path: autokeras/autokeras/analysers/input_analysers_test.py
imports: import copy
  import numpy
  import pandas
  import pytest
  import tensorflow
  from autokeras import test_utils
  from autokeras.analysers import input_analysers
label_desc: Use image node_id 2 for calling a global function with example usage: test_structured_data_infer_col_types() without return types