code: def test_invalid_input(self, X):
      msg = "Input must be a list-like of list-likes"
  
      with pytest.raises(TypeError, match=msg):
          cartesian_product(X=X)
  
file_path: pandas/pandas/tests/reshape/test_util.py
imports: import numpy
  import pytest
  from pandas import Index, date_range
  import pandas._testing
  from pandas.core.reshape.util import cartesian_product
label_desc: Use image node_id 7 for calling the TestCartesianProduct obj's underlying member method code with example usage: obj.test_invalid_input(X) without return types