code: def test_data_duplicates_columns():
      duplicate_data = pd.DataFrame(
          {
              "col1": [1, 2, 1, 2, 1, 2, 1, 2, 1, 2],
              "col2": [1, 2, 1, 2, 1, 2, 1, 2, 1, 2],
              "col3": [2, 3, 4, 4, 4, 3, 4, 5, 6, 4],
          }
      )
      check_obj = DataDuplicates(columns=["col1"])
      assert_that(
          check_obj.run(duplicate_data).value, close_to(0.80, 0.01)
      )
  
file_path: deepchecks/tests/tabular/checks/integrity/data_duplicate_test.py
imports: import numpy
  import pandas
  from hamcrest import assert_that, calling, close_to, equal_to, has_items, has_length, raises
  from deepchecks.core import ConditionCategory
  from deepchecks.core.errors import DeepchecksValueError
  from deepchecks.tabular.checks.data_integrity.data_duplicates import DataDuplicates
  from tests.base.utils import equal_condition_result
label_desc: Use image node_id 3 for calling a global function with example usage: test_data_duplicates_columns() without return types