Implement InMemoryCommonSourceKFoldDataset in lrbenchmark.dataset with init(self, X: np.ndarray, y: np.ndarray, n_splits: int) validating shapes and raising ValueError on invalid inputs. Provide get_splits(self, seed: Optional[int] = None) that yields per-fold ((X_train_flat, y_train), (X_test_flat, y_test)) using standard K-fold with optional deterministic shuffling, where X_train_flat and X_test_flat are flattened 1D arrays and samples are disjoint; implement using NumPy only.