1 2 3 4 5
_ => { return Err(pyo3::exceptions::PyValueError::new_err( format!("unknown registration method: {method_name}"), )); }