code: def test_default_arg_index(close_figures):
      # 2116
      df = pd.DataFrame(
          {
              "size": [
                  "small",
                  "large",
                  "large",
                  "small",
                  "large",
                  "small",
              ],
              "length": [
                  "long",
                  "short",
                  "short",
                  "long",
                  "long",
                  "short",
              ],
          }
      )
      assert_raises(ValueError, mosaic, data=df, title="foobar")
  
imports: from statsmodels.compat.python import lrange
  from io import BytesIO
  from itertools import product
  import numpy
  from numpy.testing import assert_, assert_raises
  import pandas
  import pytest
  from statsmodels.api import datasets
  from statsmodels.graphics.mosaicplot import _hierarchical_split, _key_splitting, _normalize_split, _reduce_dict, _split_rect, mosaic
label_desc: Use image node_id 15 for calling a global function with example usage: test_default_arg_index(close_figures) without return types