code: def test_customcell():
      types = (
          "horizontal",
          "vertical",
          "open",
          "closed",
          "T",
          "R",
          "B",
          "L",
      )
      codes = (
          (
              Path.MOVETO,
              Path.LINETO,
              Path.MOVETO,
              Path.LINETO,
              Path.MOVETO,
          ),
          (
              Path.MOVETO,
              Path.MOVETO,
              Path.LINETO,
              Path.MOVETO,
              Path.LINETO,
          ),
          (
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
          ),
          (
              Path.MOVETO,
              Path.LINETO,
              Path.LINETO,
              Path.LINETO,
              Path.CLOSEPOLY,
          ),
          (
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
              Path.LINETO,
              Path.MOVETO,
          ),
          (
              Path.MOVETO,
              Path.MOVETO,
              Path.LINETO,
              Path.MOVETO,
              Path.MOVETO,
          ),
          (
              Path.MOVETO,
              Path.LINETO,
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
          ),
          (
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
              Path.MOVETO,
              Path.LINETO,
          ),
      )
  
      for t, c in zip(types, codes):
          cell = CustomCell((0, 0), visible_edges=t, width=1, height=1)
          code = tuple(s for _, s in cell.get_path().iter_segments())
          assert c == code
  
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 5 for calling a global function with example usage: test_customcell() without return types