code: def test_serialize_without_column_names():
      with pytest.raises(TypeError):
          Table()
      table = Table(feature_names)
      sample = data
      dict_data = table.serialize(sample)
      assert list(dict_data.keys()) == feature_names
  
file_path: lightning-flash/tests/core/serve/test_types/test_table.py
imports: import pytest
  import torch
  from flash.core.serve.types import Table
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 3 for calling a global function with example usage: test_serialize_without_column_names() without return types