code: def table(ax, data, **kwargs):
      """
      Helper function to convert DataFrame and Series to matplotlib.table.
  
      Parameters
      ----------
      ax : Matplotlib axes object
      data : DataFrame or Series
          Data for table contents.
      **kwargs
          Keyword arguments to be passed to matplotlib.table.table.
          If `rowLabels` or `colLabels` is not specified, data index or column
          name will be used.
  
      Returns
      -------
      matplotlib table object
      """
      plot_backend = _get_plot_backend("matplotlib")
      return plot_backend.table(
          ax=ax, data=data, rowLabels=None, colLabels=None, **kwargs
      )
  
imports: from __future__ import annotations
  from contextlib import contextmanager
  from typing import TYPE_CHECKING, Generator
  from pandas.plotting._core import _get_plot_backend
label_desc: Use image node_id 1 for calling a global function with example usage: table(ax, data) and returns: plot_backend