def METHOD_NAME(mocked_dataset):
    """Check an exception when non-dictionary (class object) is passed."""
    pattern = r"Node.run\(\) expects a dictionary or None, "
    pattern += r"but got <class \'kedro.io.lambda_dataset.LambdaDataset\'> instead"
    with pytest.raises(ValueError, match=pattern):
        node(one_in_one_out, {"arg": "ds1"}, "A").run(mocked_dataset)