code: def test_get_dummies_kwargs(self):
      # pser = pd.Series([1, 1, 1, 2, 2, 1, 3, 4], dtype='category')
      pser = pd.Series([1, 1, 1, 2, 2, 1, 3, 4])
      psser = ps.from_pandas(pser)
      self.assert_eq(
          ps.get_dummies(psser, prefix="X", prefix_sep="-"),
          pd.get_dummies(
              pser, prefix="X", prefix_sep="-", dtype=np.int8
          ),
      )
  
      self.assert_eq(
          ps.get_dummies(psser, drop_first=True),
          pd.get_dummies(pser, drop_first=True, dtype=np.int8),
      )
  
      # nan
      # pser = pd.Series([1, 1, 1, 2, np.nan, 3, np.nan, 5], dtype='category')
      pser = pd.Series([1, 1, 1, 2, np.nan, 3, np.nan, 5])
      psser = ps.from_pandas(pser)
      self.assert_eq(
          ps.get_dummies(psser),
          pd.get_dummies(pser, dtype=np.int8),
          almost=True,
      )
  
      # dummy_na
      self.assert_eq(
          ps.get_dummies(psser, dummy_na=True),
          pd.get_dummies(pser, dummy_na=True, dtype=np.int8),
      )
  
file_path: spark/python/pyspark/pandas/tests/reshape/test_get_dummies_kwargs.py
imports: import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
label_desc: Use image node_id 1 for calling the GetDummiesKWArgsMixin obj's underlying member method code with example usage: obj.test_get_dummies_kwargs() without return types