//! Shared input guard for `matten-mlprep` (RFC-028 §3, §6).
use crateMattenMlprepError;
use Tensor;
/// Validates that `x` is a numeric rank-2 tensor and returns `(rows, cols)`.
///
/// Enforces the `rows = samples`, `columns = features` convention for every
/// public entry point, and (under the `dynamic` feature) rejects dynamic tensors
/// with an error rather than letting core panic.
pub