code: def test_error_variable_not_exist(self):
      with self.assertRaisesRegex(KeyError, "variable_foo"):
          ps.sql("select * from {variable_foo}")
  
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 1 for calling the SQLTestsMixin obj's underlying member method code with example usage: obj.test_error_variable_not_exist() without return types