code: def test_parse_latex_table_wrapping(styler):
      styler.set_table_styles(
          [
              {"selector": "toprule", "props": ":value"},
              {"selector": "bottomrule", "props": ":value"},
              {"selector": "midrule", "props": ":value"},
              {"selector": "column_format", "props": ":value"},
          ]
      )
      assert (
          _parse_latex_table_wrapping(
              styler.table_styles, styler.caption
          )
          is False
      )
      assert (
          _parse_latex_table_wrapping(
              styler.table_styles, "some caption"
          )
          is True
      )
      styler.set_table_styles(
          [
              {"selector": "not-ignored", "props": ":value"},
          ],
          overwrite=False,
      )
      assert (
          _parse_latex_table_wrapping(styler.table_styles, None) is True
      )
  
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 30 for calling a global function with example usage: test_parse_latex_table_wrapping(styler) without return types