code: def test_with_df_with_na(df_duplicate_features_with_na):
      transformer = DropDuplicateFeatures()
      X = transformer.fit_transform(df_duplicate_features_with_na)
  
      # expected result
      df = pd.DataFrame(
          {
              "Name": ["tom", "nick", "krish", "jack", np.nan],
              "dob2": pd.date_range("2020-02-24", periods=5, freq="T"),
              "City": [
                  "London",
                  "Manchester",
                  "Liverpool",
                  "Bristol",
                  np.nan,
              ],
              "Age": [20, 21, np.nan, 18, 34],
              "Marks": [0.9, 0.8, 0.7, 0.6, 0.5],
          }
      )
      pd.testing.assert_frame_equal(X, df)
  
      assert transformer.features_to_drop_ == {
          "dob",
          "dob3",
          "City2",
          "Age2",
      }
      assert transformer.duplicated_feature_sets_ == [
          {"dob", "dob2", "dob3"},
          {"City", "City2"},
          {"Age", "Age2"},
      ]
  
file_path: feature_engine/tests/test_selection/test_drop_duplicate_features.py
imports: import numpy
  import pandas
  import pytest
  from feature_engine.selection import DropDuplicateFeatures
label_desc: Use image node_id 5 for calling a global function with example usage: test_with_df_with_na(df_duplicate_features_with_na) without return types