code: def test_frame_dot(self):
      pdf = pd.DataFrame([[0, 1, -2, -1], [1, 1, 1, 1]])
      psdf = ps.from_pandas(pdf)
  
      pser = pd.Series([1, 1, 2, 1])
      psser = ps.from_pandas(pser)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      # Index reorder
      pser = pser.reindex([1, 0, 2, 3])
      psser = ps.from_pandas(pser)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      # ser with name
      pser.name = "ser"
      psser = ps.from_pandas(pser)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      # df with MultiIndex as column (ser with MultiIndex)
      arrays = [[1, 1, 2, 2], ["red", "blue", "red", "blue"]]
      pidx = pd.MultiIndex.from_arrays(
          arrays, names=("number", "color")
      )
      pser = pd.Series([1, 1, 2, 1], index=pidx)
      pdf = pd.DataFrame([[0, 1, -2, -1], [1, 1, 1, 1]], columns=pidx)
      psdf = ps.from_pandas(pdf)
      psser = ps.from_pandas(pser)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      # df with Index as column (ser with Index)
      pidx = pd.Index([1, 2, 3, 4], name="number")
      pser = pd.Series([1, 1, 2, 1], index=pidx)
      pdf = pd.DataFrame([[0, 1, -2, -1], [1, 1, 1, 1]], columns=pidx)
      psdf = ps.from_pandas(pdf)
      psser = ps.from_pandas(pser)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      # df with Index
      pdf.index = pd.Index(["x", "y"], name="char")
      psdf = ps.from_pandas(pdf)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      # df with MultiIndex
      pdf.index = pd.MultiIndex.from_arrays(
          [[1, 1], ["red", "blue"]], names=("number", "color")
      )
      psdf = ps.from_pandas(pdf)
      self.assert_eq(psdf.dot(psser), pdf.dot(pser))
  
      pdf = pd.DataFrame([[1, 2], [3, 4]])
      psdf = ps.from_pandas(pdf)
      self.assert_eq(psdf.dot(psdf[0]), pdf.dot(pdf[0]))
      self.assert_eq(psdf.dot(psdf[0] * 10), pdf.dot(pdf[0] * 10))
      self.assert_eq(
          (psdf + 1).dot(psdf[0] * 10), (pdf + 1).dot(pdf[0] * 10)
      )
  
file_path: spark/python/pyspark/pandas/tests/diff_frames_ops/test_dot_frame.py
imports: import pandas
  from pyspark import pandas
  from pyspark.pandas.config import set_option, reset_option
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 3 for calling the DiffFramesDotFrameMixin obj's underlying member method code with example usage: obj.test_frame_dot() without return types