code: def test_names_glue():
      """Test output with `names_glue`"""
      df_in = pd.DataFrame(
          {
              "family": ["Kelly", "Kelly", "Quin", "Quin"],
              "name": ["Mark", "Scott", "Tegan", "Sara"],
              "n": ["1", "2", "1", "2"],
          }
      )
      df_out = pd.DataFrame(
          {
              "family": ["Kelly", "Quin"],
              "name1": ["Mark", "Tegan"],
              "name2": ["Scott", "Sara"],
          }
      )
  
      result = df_in.pivot_wider(
          index="family",
          names_from="n",
          values_from="name",
          names_glue="name{n}",
      )
      assert_frame_equal(result, df_out)
  
imports: import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 26 for calling a global function with example usage: test_names_glue() without return types