code: def test_nan(df_with_nan_row, df_with_single_nan_in_col):
      df = df_with_nan_row.set_index("col2")
      check_obj = DataDuplicates()
      assert_that(check_obj.run(df).value, equal_to(0))
  
      df = df_with_single_nan_in_col
      check_obj = DataDuplicates()
      assert_that(check_obj.run(df).value, equal_to(0))
  
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 11 for calling a global function with example usage: test_nan(df_with_nan_row, df_with_single_nan_in_col) without return types