code: def test_escaped_variable_name():
      # Rename 'cpi' column to 'CPI_'
      data = macrodata.load().data
      data.rename(columns={"cpi": "CPI_"}, inplace=True)
  
      mod = OLS.from_formula("CPI_ ~ 1 + np.log(realgdp)", data=data)
      res = mod.fit()
      assert "CPI\\_" in res.summary().as_latex()
      assert "CPI_" in res.summary().as_text()
  
file_path: statsmodels/statsmodels/iolib/tests/test_summary.py
imports: import numpy
  import pytest
  from numpy.testing import assert_equal
  from statsmodels.datasets import macrodata
  from statsmodels.tools.tools import add_constant
  from statsmodels.regression.linear_model import OLS
label_desc: Use image node_id 1 for calling a global function with example usage: test_escaped_variable_name() without return types