code: def test_table_name():
      """
      Raise error if `table` is not None,
      and the table name cannot be found.
      """
      with pytest.raises(
          KeyError, match="Table 'fake' is not in the 'Tables' sheet."
      ):
          io.xlsx_table(filename, "Tables", table="fake")
  
file_path: pyjanitor/tests/io/test_xlsx_table.py
imports: from pathlib import Path
  import pandas
  import pytest
  from openpyxl import load_workbook
  from pandas.testing import assert_frame_equal
  from janitor import io
label_desc: Use image node_id 4 for calling a global function with example usage: test_table_name() without return types