code: func (s *lockBasedTxSimulator) GetStateRangeScanIteratorWithMetadata(namespace string, startKey string, endKey string, metadata map[string]interface{}) (ledger.QueryResultsIterator, error) {
  	if err := s.checkBeforePaginatedQueries(); err != nil {
  		return nil, err
  	}
  	return s.lockBasedQueryExecutor.GetStateRangeScanIteratorWithMetadata(namespace, startKey, endKey, metadata)
  }
docs: // GetStateRangeScanIteratorWithMetadata implements method in interface `ledger.QueryExecutor`