#NEWLINE# def get_valid_transaction_id( self , app_id , target_txid , entity_key ) : #NEWLINE# #INDENT# ' This returns valid transaction id for the entity key.\n\n    If the specified transaction id is black-listed,\n    this returns latest valid transaction id.\n    If there is no valid transaction id, this returns 0.\n    ' #NEWLINE# return long ( target_txid )