code: def test_multiindex_columns_hidden():
      df = DataFrame([[1, 2, 3, 4]])
      df.columns = MultiIndex.from_tuples(
          [("A", 1), ("A", 2), ("A", 3), ("B", 1)]
      )
      s = df.style
      assert "{tabular}{lrrrr}" in s.to_latex()
      s.set_table_styles([])  # reset the position command
      s.hide([("A", 2)], axis="columns")
      assert "{tabular}{lrrr}" in s.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 21 for calling a global function with example usage: test_multiindex_columns_hidden() without return types