code: def test_sql_with_pandas_on_spark_objects(self):
      psdf = ps.DataFrame({"a": [1, 2, 3, 4]})
  
      assertDataFrameEqual(
          ps.sql("SELECT {col} FROM {tbl}", col=psdf.a, tbl=psdf), psdf
      )
      assertDataFrameEqual(
          ps.sql("SELECT {tbl.a} FROM {tbl}", tbl=psdf), psdf
      )
  
      psdf = ps.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
      assertDataFrameEqual(
          ps.sql(
              "SELECT {col}, {col2} FROM {tbl}",
              col=psdf.A,
              col2=psdf.B,
              tbl=psdf,
          ),
          psdf,
      )
      assertDataFrameEqual(
          ps.sql("SELECT {tbl.A}, {tbl.B} FROM {tbl}", tbl=psdf), psdf
      )
  
file_path: spark/python/pyspark/pandas/tests/test_sql.py
imports: from pyspark import pandas
  from pyspark.errors import ParseException
  from pyspark.testing.pandasutils import PandasOnSparkTestCase
  from pyspark.testing.sqlutils import SQLTestUtils
  from pyspark.testing.utils import assertDataFrameEqual
label_desc: Use image node_id 7 for calling the SQLTestsMixin obj's underlying member method code with example usage: obj.test_sql_with_pandas_on_spark_objects() without return types