code: def test_multi_options(df_ext):
      cidx = MultiIndex.from_tuples(
          [("Z", "a"), ("Z", "b"), ("Y", "c")]
      )
      ridx = MultiIndex.from_tuples(
          [("A", "a"), ("A", "b"), ("B", "c")]
      )
      df_ext.index, df_ext.columns = ridx, cidx
      styler = df_ext.style.format(precision=2)
  
      expected = dedent(
          """\
       &  & \\multicolumn{2}{r}{Z} & Y \\\\
       &  & a & b & c \\\\
      \\multirow[c]{2}{*}{A} & a & 0 & -0.61 & ab \\\\
      """
      )
      result = styler.to_latex()
      assert expected in result
  
      with option_context("styler.latex.multicol_align", "l"):
          assert (
              " &  & \\multicolumn{2}{l}{Z} & Y \\\\"
              in styler.to_latex()
          )
  
      with option_context("styler.latex.multirow_align", "b"):
          assert (
              "\\multirow[b]{2}{*}{A} & a & 0 & -0.61 & ab \\\\"
              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 20 for calling a global function with example usage: test_multi_options(df_ext) without return types