code: def test_row_from_dict():
      td = TabularData(["col1", "col2"])
      td.row_from_dict({"col3": "value3", "col4": "value4"})
      assert td.keys() == ["col1", "col2", "col3", "col4"]
      assert dict(td.items()) == {
          "col1": [""],
          "col2": [""],
          "col3": ["value3"],
          "col4": ["value4"],
      }
      td.row_from_dict(
          {"col3": "value3", "col5": "value5", "col6": "value6"}
      )
      assert td.keys() == [
          "col1",
          "col2",
          "col3",
          "col4",
          "col5",
          "col6",
      ]
      assert dict(td.items()) == {
          "col1": ["", ""],
          "col2": ["", ""],
          "col3": ["value3", "value3"],
          "col4": ["value4", ""],
          "col5": ["", "value5"],
          "col6": ["", "value6"],
      }
      assert td.shape == (6, 2)
      assert list(td) == [
          ["", "", "value3", "value4", "", ""],
          ["", "", "value3", "", "value5", "value6"],
      ]
  
file_path: dvc/tests/unit/test_tabular_data.py
imports: import pytest
  from dvc.compare import TabularData
label_desc: Use image node_id 7 for calling a global function with example usage: test_row_from_dict() without return types