code: def test_drop_duplicates_subset(axis, subset, expected):
      td = TabularData(["col-1", "col-2", "col-3", "col-4"])
      td.extend(
          [
              ["foo", "foo", "foo", "bar"],
              ["foo", "bar", "foo", "bar"],
              ["foo", "bar", "foobar", "bar"],
          ]
      )
      assert list(td) == [
          ["foo", "foo", "foo", "bar"],
          ["foo", "bar", "foo", "bar"],
          ["foo", "bar", "foobar", "bar"],
      ]
      td.drop_duplicates(axis, subset=subset)
      assert list(td) == expected
  
file_path: dvc/tests/unit/test_tabular_data.py
imports: import pytest
  from dvc.compare import TabularData
label_desc: Use image node_id 12 for calling a global function with example usage: test_drop_duplicates_subset(axis, subset, expected) without return types