docstr: If transform df does not have all necessaty columns, raise error
docstr_tok: ["If","transform","df","does","not","have","all","necessaty","columns",",","raise","error"]
code: def test_transform_wrong_input(self):
      """If transform df does not have all necessaty columns, raise error"""
      with pytest.raises(
          ValueError,
          match="We should provide all necessary columns in "
          r"the time series\. Columns not provided: \[2, 3\]",
      ):
          df = pd.DataFrame(np.random.random([5, 5]))
          ddt = DynamicDataTransformer(p=1).fit(df)
          ddt.transform(df.drop([2, 3], axis=1))
  
file_path: causalnex/tests/structure/test_transformers.py
imports: import re
  import numpy
  import pandas
  import pytest
  from sklearn.exceptions import NotFittedError
  from causalnex.structure.transformers import DynamicDataTransformer
label_desc: Use image node_id 5 for calling the TestDynamicDataTransformer obj's underlying member method code with example usage: obj.test_transform_wrong_input() without return types