code: def test_sql_with_python_objects(self):
      assertDataFrameEqual(
          ps.sql("SELECT {col} as a FROM range(1)", col="lit"),
          ps.DataFrame({"a": ["lit"]}),
      )
      assertDataFrameEqual(
          ps.sql(
              "SELECT id FROM range(10) WHERE id IN {pred}",
              col="lit",
              pred=(1, 2, 3),
          ),
          ps.DataFrame({"id": [1, 2, 3]}),
      )
      assertDataFrameEqual(
          ps.sql("SELECT {col} as a FROM range(1)", col="a'''c''d"),
          ps.DataFrame({"a": ["a'''c''d"]}),
      )
      assertDataFrameEqual(
          ps.sql(
              "SELECT id FROM range(10) WHERE id IN {pred}",
              col="a'''c''d",
              pred=(1, 2, 3),
          ),
          ps.DataFrame({"id": [1, 2, 3]}),
      )
  
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 6 for calling the SQLTestsMixin obj's underlying member method code with example usage: obj.test_sql_with_python_objects() without return types