code: def test_generalize_names_duplcheck():
      df = pd.read_csv(StringIO(csv))
  
      # duplicates before
      dupl = any(df["Name"].apply(generalize_names).duplicated())
      assert dupl is True
  
      # no duplicates
      df_new = generalize_names_duplcheck(df=df, col_name="Name")
      no_dupl = any(df_new["Name"].duplicated())
      assert no_dupl is False
  
imports: import sys
  from io import StringIO
  import pandas
  from data_names import csv
  from mlxtend.text import generalize_names, generalize_names_duplcheck
label_desc: Use image node_id 1 for calling a global function with example usage: test_generalize_names_duplcheck() without return types