pub fn calculate_consumed_weight<Call>(
    maximum_weight: BlockWeights,
    all_weight: ConsumedWeight,
    info: &DispatchInfoOf<Call>
) -> Result<ConsumedWeight, TransactionValidityError>where
    Call: Dispatchable<Info = DispatchInfo, PostInfo = PostDispatchInfo>,