code: def test_get_dummies_int_int(self):
      data = Series([1, 2, 1])
      result = get_dummies(data)
      expected = DataFrame(
          [[1, 0], [0, 1], [1, 0]], columns=[1, 2], dtype=bool
      )
      tm.assert_frame_equal(result, expected)
  
      data = Series(Categorical(["a", "b", "a"]))
      result = get_dummies(data)
      expected = DataFrame(
          [[1, 0], [0, 1], [1, 0]],
          columns=Categorical(["a", "b"]),
          dtype=bool,
      )
      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 30 for calling the TestGetDummies obj's underlying member method code with example usage: obj.test_get_dummies_int_int() without return types