code: def test_list_operations():
      td = TabularData(["col1", "col2", "col3"])
      td.append(["1", "2", "3"])
  
      assert list(td) == [["1", "2", "3"]]
      td.extend((["11", "12", "13"], ["21", "22", "23"]))
      assert list(td) == [
          ["1", "2", "3"],
          ["11", "12", "13"],
          ["21", "22", "23"],
      ]
      td.insert(1, ["01", "02", "03"])
      assert list(td) == [
          ["1", "2", "3"],
          ["01", "02", "03"],
          ["11", "12", "13"],
          ["21", "22", "23"],
      ]
      assert td.shape == (3, 4)
      assert len(td) == 4
      assert td[1] == ["01", "02", "03"]
      assert td[1:] == [
          ["01", "02", "03"],
          ["11", "12", "13"],
          ["21", "22", "23"],
      ]
      assert td[::-1] == [
          ["21", "22", "23"],
          ["11", "12", "13"],
          ["01", "02", "03"],
          ["1", "2", "3"],
      ]
      del td[1]
      assert list(td) == [
          ["1", "2", "3"],
          ["11", "12", "13"],
          ["21", "22", "23"],
      ]
      assert td.shape == (3, 3)
      td[1:3] = [["51", "52", "53"], ["61", "62", "63"]]
      assert list(td) == [
          ["1", "2", "3"],
          ["51", "52", "53"],
          ["61", "62", "63"],
      ]
      td[1] = ["41", "42", "43"]
      assert td[1] == ["41", "42", "43"]
  
      del td[1:3]
      assert td.shape == (3, 1)
  
      assert td.to_csv() == "col1,col2,col3\r\n1,2,3\r\n"
  
file_path: dvc/tests/unit/test_tabular_data.py
imports: import pytest
  from dvc.compare import TabularData
label_desc: Use image node_id 2 for calling a global function with example usage: test_list_operations() without return types