code: def test_from_data_frame_misconfiguration():
      """Tests that a ``ValueError`` is raised when ``TabularForecastingData`` is constructed without parameters."""
      with pytest.raises(
          ValueError,
          match="evaluation or inference requires parameters",
      ):
          TabularForecastingData.from_data_frame(
              "time_idx",
              "target",
              ["series"],
              val_data_frame=MagicMock(),
              additional_kwarg="test",
              batch_size=4,
          )
  
imports: from unittest.mock import MagicMock, patch
  import pytest
  from flash.core.utilities.imports import _TOPIC_TABULAR_AVAILABLE
  from flash.tabular.forecasting import TabularForecastingData
label_desc: Use image node_id 3 for calling a global function with example usage: test_from_data_frame_misconfiguration() without return types