code: def test_parse_latex_header_span():
      cell = {
          "attributes": 'colspan="3"',
          "display_value": "text",
          "cellstyle": [],
      }
      expected = "\\multicolumn{3}{Y}{text}"
      assert _parse_latex_header_span(cell, "X", "Y") == expected
  
      cell = {
          "attributes": 'rowspan="5"',
          "display_value": "text",
          "cellstyle": [],
      }
      expected = "\\multirow[X]{5}{*}{text}"
      assert _parse_latex_header_span(cell, "X", "Y") == expected
  
      cell = {"display_value": "text", "cellstyle": []}
      assert _parse_latex_header_span(cell, "X", "Y") == "text"
  
      cell = {
          "display_value": "text",
          "cellstyle": [("bfseries", "--rwrap")],
      }
      assert (
          _parse_latex_header_span(cell, "X", "Y") == "\\bfseries{text}"
      )
  
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 29 for calling a global function with example usage: test_parse_latex_header_span() without return types