You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: systemtopiceventsubscriptions_server.go
    path of file: ./repos/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/fake
    
    the code of the file until where you have to start completion: //go:build go1.18
// +build go1.18

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Code generated by Microsoft (R) AutoRest Code Generator. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

package fake

import (
	"context"
	"errors"
	"fmt"
	azfake "github.com/Azure/azure-sdk-for-go/sdk/azcore/fake"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
	"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
	"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventgrid/v2"
	"net/http"
	"net/url"
	"regexp"
	"strconv"
)

// SystemTopicEventSubscriptionsServer is a fake server for instances of the armeventgrid.SystemTopicEventSubscriptionsClient type.
type SystemTopicEventSubscriptionsServer struct {
	// BeginCreateOrUpdate is the fake for method SystemTopicEventSubscriptionsClient.BeginCreateOrUpdate
	// HTTP status codes to indicate success: http.StatusCreated
	BeginCreateOrUpdate func(ctx context.Context, resourceGroupName string, systemTopicName string, eventSubscriptionName string, eventSubscriptionInfo a
    
func (s *SystemTopicEventSubscriptionsServerTransport) dispatchNewListBySystemTopicPager(req *http.Request) (*http.Response, error) {
	if s.srv.NewListBySystemTopicPager == nil {
		return nil, &nonRetriableError{errors.New("fake for method NewListBySystemTopicPager not implemented")}
	}
	newListBySystemTopicPager := s.newListBySystemTopicPager.get(req)
	if newListBySystemTopicPager == nil {
		const regexStr = `/subscriptions/(?P<subscriptionId>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/resourceGroups/(?P<resourceGroupName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/providers/Microsoft\.EventGrid/systemTopics/(?P<systemTopicName>[!#&$-;=?-\[\]_a-zA-Z0-9~%@]+)/eventSubscriptions`
		regex := regexp.MustCompile(regexStr)
		matches := regex.FindStringSubmatch(req.URL.EscapedPath())
		if matches == nil || len(matches) < 3 {
			return nil, fmt.Errorf("failed to parse path %s", req.URL.Path)
		}
		qp := req.URL.Query()
		resourceGroupNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("resourceGroupName")])
		if err != nil {
			return nil, err
		}
		systemTopicNameParam, err := url.PathUnescape(matches[regex.SubexpIndex("systemTopicName")])
		if err != nil {
			return nil, err
		}
		filterUnescaped, err := url.QueryUnescape(qp.Get("$filter"))
		if err != nil {
			return nil, err
		}
		filterParam := getOptional(filterUnescaped)
		topUnescaped, err := url.QueryUnescape(qp.Get("$top"))
		if err != nil {
			return nil, err
		}
		topParam, err := parseOptional(topUnescaped, func(v string) (int32, error) {
			p, parseErr := strconv.ParseInt(v, 10, 32)
			if parseErr != nil {
				return 0, parseErr
			}
			return int32(p), nil
		})
		if err != nil {
			return nil, err
		}
		var options *armeventgrid.SystemTopicEventSubscriptionsClientListBySystemTopicOptions
		if filterParam != nil || topParam != nil {
			options = &armeventgrid.SystemTopicEventSubscriptionsClientListBySystemTopicOptions{
				Filter: filterParam,
				Top:    topParam,
			}
		}
		resp := s.srv.NewListBySystemTopicPager(resourceGroupNameParam, systemTopicNameParam, options)
		newListBySystemTopicPager = &resp
		s.newListBySystemTopicPager.add(req, newListBySystemTopicPager)
		server.PagerResponderInjectNextLinks(newListBySystemTopicPager, req, func(page *armeventgrid.SystemTopicEventSubscriptionsClientListBySystemTopicResponse, createLink func() string) {
			page.NextLink = to.Ptr(createLink())
		})
	}
	resp, err := server.PagerResponderNext(newListBySystemTopicPager, req)
	if err != nil {
		return nil, err
	}
	if !contains([]int{http.StatusOK}, resp.StatusCode) {
		s.newListBySystemTopicPager.remove(req)
		return nil, &nonRetriableError{fmt.Errorf("unexpected status code %d. acceptable values are http.StatusOK", resp.StatusCode)}
	}
	if !server.PagerResponderMore(newListBySystemTopicPager) {
		s.newListBySystemTopicPager.remove(req)
	}
	return resp, nil
}