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: scale.go
    path of file: ./repos/kwok/pkg/kwokctl/scale
    
    the code of the file until where you have to start completion: /*
Copyright 2023 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with th
    
func NewParameters(ctx context.Context, raw json.RawMessage, params []string) (any, error) {
	var param any
	err := json.Unmarshal(raw, &param)
	if err != nil {
		return nil, fmt.Errorf("unmarshal params error: %w", err)
	}

	for _, p := range params {
		q, err := expression.NewQuery(p)
		if err != nil {
			return nil, fmt.Errorf("parse param %s error: %w", p, err)
		}
		datas, err := q.Execute(ctx, param)
		if err != nil {
			return nil, fmt.Errorf("execute param %s with %v error: %w", p, param, err)
		}
		if len(datas) != 1 {
			return nil, fmt.Errorf("unexpected result: %v", datas)
		}
		param = datas[0]
	}

	return param, nil
}