code: def test_get_dummies_int_df(self, dtype):
      data = DataFrame(
          {
              "A": [1, 2, 1],
              "B": Categorical(["a", "b", "a"]),
              "C": [1, 2, 1],
              "D": [1.0, 2.0, 1.0],
          }
      )
      columns = ["C", "D", "A_1", "A_2", "B_a", "B_b"]
      expected = DataFrame(
          [
              [1, 1.0, 1, 0, 1, 0],
              [2, 2.0, 0, 1, 0, 1],
              [1, 1.0, 1, 0, 1, 0],
          ],
          columns=columns,
      )
      expected[columns[2:]] = expected[columns[2:]].astype(dtype)
      result = get_dummies(data, columns=["A", "B"], dtype=dtype)
      tm.assert_frame_equal(result, expected)
  
imports: import re
  import unicodedata
  import numpy
  import pytest
  import pandas.util._test_decorators
  from pandas.core.dtypes.common import is_integer_dtype
  import pandas
  from pandas import ArrowDtype, Categorical, CategoricalDtype, CategoricalIndex, DataFrame, Index, RangeIndex, Series, SparseDtype, get_dummies
  import pandas._testing
  from pandas.core.arrays.sparse import SparseArray
label_desc: Use image node_id 31 for calling the TestGetDummies obj's underlying member method code with example usage: obj.test_get_dummies_int_df(dtype) without return types