code: def test_int_columns():
      """Test output when names_from is not a string dtype."""
      df_in = pd.DataFrame(
          [
              {"name": 1, "n": 10, "pct": 0.1},
              {"name": 2, "n": 20, "pct": 0.2},
              {"name": 3, "n": 30, "pct": 0.3},
          ]
      )
  
      df_out = pd.DataFrame(
          [
              {
                  "num": 0,
                  "n_1": 10.0,
                  "n_2": 20.0,
                  "n_3": 30.0,
                  "pct_1": 0.1,
                  "pct_2": 0.2,
                  "pct_3": 0.3,
              }
          ]
      )
  
      result = df_in.assign(num=0).pivot_wider(
          index="num",
          names_from="name",
          values_from=["n", "pct"],
          names_sep="_",
      )
  
      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 29 for calling a global function with example usage: test_int_columns() without return types