code: def test_table_empty(capsys):
      td = TabularData(["Col1", "Col2", "Col3"])
      assert dict(td.items()) == {"Col1": [], "Col2": [], "Col3": []}
      assert td.columns == [[], [], []]
      assert td.keys() == ["Col1", "Col2", "Col3"]
      assert list(td) == []
      assert td.Col1 == []
      assert td.Col2 == []
      assert td.Col3 == []
  
      assert td[1:] == []
      with pytest.raises(IndexError):
          _ = td[1]
  
      assert len(td) == 0
      assert td.shape == (3, 0)
      assert td.to_csv() == """Col1,Col2,Col3\r\n"""
  
      td.render()
      assert capsys.readouterr() == ("", "")
  
      td.render(rich_table=True)
      assert capsys.readouterr() == ("", "")
  
      td.render(markdown=True)
      assert capsys.readouterr() == (
          "| Col1   | Col2   | Col3   |\n|--------|--------|--------|\n\n",
          "",
      )
  
      td.rename("Col1", "Col11")
      assert td.keys() == ["Col11", "Col2", "Col3"]
  
      td.project("Col3", "Col11")
      assert td.keys() == ["Col3", "Col11"]
  
file_path: dvc/tests/unit/test_tabular_data.py
imports: import pytest
  from dvc.compare import TabularData
label_desc: Use image node_id 1 for calling a global function with example usage: test_table_empty(capsys) without return types