code: def test_autosummary_latex_table_colspec(app, status, warning):
      app.build(force_all=True)
      result = (app.outdir / "python.tex").read_text(encoding="utf8")
      print(status.getvalue())
      print(warning.getvalue())
      assert r"\begin{longtable}{\X{1}{2}\X{1}{2}}" in result
      assert r"p{0.5\linewidth}" not in result
  
imports: import sys
  from io import StringIO
  from pathlib import Path
  from unittest.mock import Mock, patch
  import pytest
  from docutils import nodes
  from sphinx import addnodes
  from sphinx.ext.autosummary import autosummary_table, autosummary_toc, extract_summary, import_by_name, mangle_signature
  from sphinx.ext.autosummary.generate import AutosummaryEntry, generate_autosummary_content, generate_autosummary_docs
  from sphinx.ext.autosummary.generate import main
  from sphinx.testing.util import assert_node, etree_parse
  from sphinx.util.docutils import new_document
label_desc: Use image node_id 18 for calling a global function with example usage: test_autosummary_latex_table_colspec(app, status, warning) without return types