code: func (_m *DataStore) GetTxPvtRWSetByTxid(txid string, filter ledger.PvtNsCollFilter) (transientstore.RWSetScanner, error) {
  	ret := _m.Called(txid, filter)
  
  	var r0 transientstore.RWSetScanner
  	if rf, ok := ret.Get(0).(func(string, ledger.PvtNsCollFilter) transientstore.RWSetScanner); ok {
  		r0 = rf(txid, filter)
  	} else {
  		if ret.Get(0) != nil {
  			r0 = ret.Get(0).(transientstore.RWSetScanner)
  		}
  	}
  
  	var r1 error
  	if rf, ok := ret.Get(1).(func(string, ledger.PvtNsCollFilter) error); ok {
  		r1 = rf(txid, filter)
  	} else {
  		r1 = ret.Error(1)
  	}
  
  	return r0, r1
  }
docs: // GetTxPvtRWSetByTxid provides a mock function with given fields: txid, filter