code: def test_deprecation_y_pred_train_single_dataset():
      ds = Dataset(
          pd.DataFrame(
              {
                  "a": np.random.randint(0, 5, 50),
                  "b": np.random.randint(0, 5, 50),
                  "label": np.random.randint(0, 2, 50),
              }
          ),
          label="label",
      )
      y_pred_train = np.array(np.random.randint(0, 2, 50))
      y_proba_train = np.random.rand(50, 2)
      with pytest.warns(
          DeprecationWarning,
          match="y_pred_train is deprecated, please use y_pred instead.",
      ):
          _ = WeakSegmentsPerformance().run(
              ds, y_pred_train=y_pred_train, y_proba_train=y_proba_train
          )
  
      with pytest.warns(
          DeprecationWarning,
          match="y_proba_train is deprecated, please use y_proba instead.",
      ):
          _ = WeakSegmentsPerformance().run(
              ds, y_pred_train=y_pred_train, y_proba_train=y_proba_train
          )
  
file_path: deepchecks/tests/base/test_tabular_deprecation_warnings.py
imports: import warnings
  import numpy
  import pandas
  import pytest
  from sklearn.metrics import accuracy_score
  from deepchecks.tabular import Dataset
  from deepchecks.tabular.checks import CategoryMismatchTrainTest, MultiModelPerformanceReport, RegressionSystematicError, SegmentPerformance, SimpleModelComparison, TrainTestFeatureDrift, TrainTestLabelDrift, TrainTestPredictionDrift, WeakSegmentsPerformance, WholeDatasetDrift
label_desc: Use image node_id 5 for calling a global function with example usage: test_deprecation_y_pred_train_single_dataset() without return types