function hasNonTaprootFields(io) {
  return (
    io &&
    !!(
      io.redeemScript ||
      io.witnessScript ||
      (io.bip32Derivation && io.bip32Derivation.length)
    )
  );
}
Checks if the given PsbtInput or PsbtOutput has non-taproot fields.
Non-taproot fields include redeemScript, witnessScript, and bip32Derivation.
@param io The PsbtInput or PsbtOutput to check.
@returns A boolean indicating whether the given input or output has non-taproot fields.