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: radius.go
    path of file: ./repos/magma/cwf/gateway/services/uesim/servicers
    
    the code of the file until where you have to start completion: /*
 * Copyright 2020 The Magma Authors.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * Unless required by applicable law or agreed to in writing, software
    
func (srv *UESimServer) HandleRadius(imsi string, calledStationID string, p *radius.Packet) (*radius.Packet, error) {
	// todo Validate the packet. (Requires keeping state)

	// Extract EAP packet.
	eapMessage, err := packet.NewPacketFromRadius(p)
	if err != nil {
		err = fmt.Errorf("Error extracting EAP message from Radius packet: %w", err)
		return nil, err
	}
	eapBytes, err := eapMessage.Bytes()
	if err != nil {
		err = fmt.Errorf("Error converting EAP packet to bytes: %w", err)
		return nil, err
	}

	// Get the specified UE from the blobstore.
	ue, err := getUE(srv.store, imsi)
	if err != nil {
		return nil, err
	}

	// Generate EAP response.
	eapRes, err := srv.HandleEap(ue, eapBytes)
	if err != nil {
		return nil, err
	}

	// Wrap EAP response in Radius packet.
	res, err := srv.EapToRadius(eapRes, imsi, calledStationID, p.Identifier+1)
	if err != nil {
		return nil, err
	}

	return res, err
}