def METHOD_NAME(py_tx, tx_type):
    if tx_type == "CreateAccount":
        pass
    elif tx_type == "DeleteAccount":
        pass
    elif tx_type == "DeployContract":
        py_tx.code = base64.b64decode(py_tx.code.encode('ascii'))
    elif tx_type == "FunctionCall":
        py_tx.args = base64.b64decode(py_tx.args.encode('ascii'))
        py_tx.deposit = int(py_tx.deposit)
    elif tx_type == "Transfer":
        py_tx.deposit = int(py_tx.deposit)
    elif tx_type == "Stake":
        py_tx.stake = int(py_tx.stake)
        py_tx.publicKey = convert_json_public_key_to_py_public_key(
            py_tx.publicKey)
    else:
        raise ValueError('Unsupported tx type: %s' % tx_type)
    return py_tx