code: def test_round(self):
      pdf = pd.DataFrame(
          {
              "A": [0.028208, 0.038683, 0.877076],
              "B": [0.992815, 0.645646, 0.149370],
              "C": [0.173891, 0.577595, 0.491027],
          },
          columns=["A", "B", "C"],
          index=np.random.rand(3),
      )
      psdf = ps.from_pandas(pdf)
  
      pser = pd.Series([1, 0, 2], index=["A", "B", "C"])
      psser = ps.Series([1, 0, 2], index=["A", "B", "C"])
      self.assert_eq(pdf.round(2), psdf.round(2))
      self.assert_eq(
          pdf.round({"A": 1, "C": 2}), psdf.round({"A": 1, "C": 2})
      )
      self.assert_eq(
          pdf.round({"A": 1, "D": 2}), psdf.round({"A": 1, "D": 2})
      )
      self.assert_eq(pdf.round(pser), psdf.round(psser))
      msg = "decimals must be an integer, a dict-like or a Series"
      with self.assertRaisesRegex(TypeError, msg):
          psdf.round(1.5)
  
      # multi-index columns
      columns = pd.MultiIndex.from_tuples(
          [("X", "A"), ("X", "B"), ("Y", "C")]
      )
      pdf.columns = columns
      psdf.columns = columns
      pser = pd.Series([1, 0, 2], index=columns)
      psser = ps.Series([1, 0, 2], index=columns)
      self.assert_eq(pdf.round(2), psdf.round(2))
      self.assert_eq(
          pdf.round({("X", "A"): 1, ("Y", "C"): 2}),
          psdf.round({("X", "A"): 1, ("Y", "C"): 2}),
      )
      self.assert_eq(
          pdf.round({("X", "A"): 1, "Y": 2}),
          psdf.round({("X", "A"): 1, "Y": 2}),
      )
      self.assert_eq(pdf.round(pser), psdf.round(psser))
  
      # non-string names
      pdf = pd.DataFrame(
          {
              10: [0.028208, 0.038683, 0.877076],
              20: [0.992815, 0.645646, 0.149370],
              30: [0.173891, 0.577595, 0.491027],
          },
          index=np.random.rand(3),
      )
      psdf = ps.from_pandas(pdf)
  
      self.assert_eq(
          pdf.round({10: 1, 30: 2}), psdf.round({10: 1, 30: 2})
      )
  
imports: import unittest
  import numpy
  import pandas
  from pyspark.sql import functions
  from pyspark import pandas
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 6 for calling the FrameComputeMixin obj's underlying member method code with example usage: obj.test_round() without return types