fn is_valid_initializer( initializer: &Initializer, dtype: &Dtype, structs: &HashMap<String, Option<Dtype>>, ) -> bool