def METHOD_NAME(
    AutoMLTestEnv,
    dummy_classifier_estimator_class,
    dummy_binary_pipeline,
    X_y_binary,
    caplog,
):
    X, y = X_y_binary
    X = pd.DataFrame(X)
    automl_config = AutoMLConfig(
        None,
        "binary",
        LogLossBinary(),
        [],
        None,
        True,
        None,
        0,
        None,
        None,
        {},
    )
    env = AutoMLTestEnv("binary")
    with env.test_context():
        res = train_pipeline(
            dummy_binary_pipeline,
            X,
            y,
            automl_config=automl_config,
            get_hashes=False,
        )
    assert isinstance(res, tuple)
    assert res[1] is None
    with env.test_context():
        res = train_pipeline(
            dummy_binary_pipeline,
            X,
            y,
            automl_config=automl_config,
            get_hashes=True,
        )
    assert isinstance(res, tuple)
    assert res[1] == hash(tuple(X.index))