class_docstr: Test behaviour of the learn_dynamic_structure of `from_pandas_dynamic`
class_docstr_tok: ["Test","behaviour","of","the","learn_dynamic_structure","of","`","from_pandas_dynamic","`"]
code: def test_incorrect_input_format(self):
      with pytest.raises(
          ValueError,
          match="Provided empty list of time_series."
          " At least one DataFrame must be provided",
      ):
          from_pandas_dynamic([], 1)
  
      with pytest.raises(
          ValueError,
          match=r"All columns must have numeric data\. "
          r"Consider mapping the following columns to int: \['a'\]",
      ):
          from_pandas_dynamic(pd.DataFrame([["1"]], columns=["a"]), 1)
  
      with pytest.raises(
          TypeError,
          match="Time series entries must be instances of `pd.DataFrame`",
      ):
          from_pandas_dynamic([np.array([1, 2])], 1)
  
      with pytest.raises(
          ValueError,
          match="Index for dataframe must be provided in increasing order",
      ):
          df = pd.DataFrame(
              np.random.random([5, 5]), index=[3, 1, 2, 5, 0]
          )
          from_pandas_dynamic(df, 1)
  
      with pytest.raises(
          ValueError,
          match="All inputs must have the same columns and same types",
      ):
          df = pd.DataFrame(
              np.random.random([5, 5]),
              columns=["a", "b", "c", "d", "e"],
          )
          df_2 = pd.DataFrame(
              np.random.random([5, 5]),
              columns=["a", "b", "c", "d", "f"],
          )
          from_pandas_dynamic([df, df_2], 1)
  
      with pytest.raises(
          ValueError,
          match="All inputs must have the same columns and same types",
      ):
          df = pd.DataFrame(
              np.random.random([5, 5]),
              columns=["a", "b", "c", "d", "e"],
          )
          df_2 = pd.DataFrame(
              np.random.random([5, 5]),
              columns=["a", "b", "c", "d", "e"],
          )
          df_2["a"] = df_2["a"].astype(int)
          from_pandas_dynamic([df, df_2], 1)
  
      with pytest.raises(
          TypeError,
          match="Index must be integers",
      ):
          df = pd.DataFrame(
              np.random.random([5, 5]), index=[0, 1, 2, 3.0, 4]
          )
          from_pandas_dynamic(df, 1)
  
imports: import re
  import networkx
  import numpy
  import pandas
  import pytest
  from causalnex.structure.dynotears import from_numpy_dynamic, from_pandas_dynamic
label_desc: Use image node_id 20 for calling the TestFromPandasDynotears obj's underlying member method code with example usage: obj.test_incorrect_input_format() without return types