code: def test_table_cells():
      fig, ax = plt.subplots()
      table = Table(ax)
  
      cell = table.add_cell(1, 2, 1, 1)
      assert isinstance(cell, CustomCell)
      assert cell is table[1, 2]
  
      cell2 = CustomCell((0, 0), 1, 2, visible_edges=None)
      table[2, 1] = cell2
      assert table[2, 1] is cell2
  
      # make sure getitem support has not broken
      # properties and setp
      table.properties()
      plt.setp(table)
  
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 7 for calling a global function with example usage: test_table_cells() without return types