code: def test_to_datetime():
      wrong_args = [pd.DataFrame({"a": [1, 2]}), {"a": [1, 2]}]
  
      for arg in wrong_args:
          with pytest.raises(ValueError) as cm:
              md.to_datetime(arg)
          assert "[year, month, day]" in str(cm.value)
  
      with pytest.raises(TypeError):
          md.to_datetime([[1, 2], [3, 4]])
  
imports: import pandas
  import pytest
  from ....None import dataframe
label_desc: Use image node_id 1 for calling a global function with example usage: test_to_datetime() without return types