code: def test_diff_cell_table():
      cells = (
          "horizontal",
          "vertical",
          "open",
          "closed",
          "T",
          "R",
          "B",
          "L",
      )
      cellText = [["1"] * len(cells)] * 2
      colWidths = [0.1] * len(cells)
  
      _, axs = plt.subplots(
          nrows=len(cells), figsize=(4, len(cells) + 1)
      )
      for ax, cell in zip(axs, cells):
          ax.table(
              colWidths=colWidths,
              cellText=cellText,
              loc="center",
              edges=cell,
          )
          ax.axis("off")
      plt.tight_layout()
  
file_path: matplotlib/lib/matplotlib/tests/test_table.py
imports: import numpy
  import pytest
  import matplotlib.pyplot
  import matplotlib
  from matplotlib.path import Path
  from matplotlib.table import CustomCell, Table
  from matplotlib.testing.decorators import image_comparison, check_figures_equal
  from matplotlib.transforms import Bbox
label_desc: Use image node_id 4 for calling a global function with example usage: test_diff_cell_table() without return types