code: def test_column_format(styler):
      # default setting is already tested in `test_latex_minimal_tabular`
      styler.set_table_styles(
          [{"selector": "column_format", "props": ":cccc"}]
      )
  
      assert "\\begin{tabular}{rrrr}" in styler.to_latex(
          column_format="rrrr"
      )
      styler.set_table_styles(
          [{"selector": "column_format", "props": ":r|r|cc"}]
      )
      assert "\\begin{tabular}{r|r|cc}" in styler.to_latex()
  
imports: from textwrap import dedent
  import numpy
  import pytest
  from pandas import DataFrame, MultiIndex, Series, option_context
  from pandas.io.formats.style import Styler
  from pandas.io.formats.style_render import _parse_latex_cell_styles, _parse_latex_css_conversion, _parse_latex_header_span, _parse_latex_table_styles, _parse_latex_table_wrapping
label_desc: Use image node_id 7 for calling a global function with example usage: test_column_format(styler) without return types