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: api.go
    path of file: ./repos/erda/internal/pkg/ai-functions/sdk
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License
    
func VerifyArguments(parameters, data json.RawMessage) (err error) {
	// fd.Parameters and data may be either JSON or Yaml structured, convert to JSON structured uniformly.
	if parameters, err = strutil.YamlOrJsonToJson(parameters); err != nil {
		return errors.Wrap(err, "failed to unmarshal Parameters to JSON")
	}
	if data, err = strutil.YamlOrJsonToJson(data); err != nil {
		return errors.Wrap(err, "failed to unmarshal to JSON")
	}
	if valid := json.Valid(data); !valid {
		return errors.New("data is invalid JSON")
	}
	ls := gojsonschema.NewBytesLoader(parameters)
	ld := gojsonschema.NewBytesLoader(data)
	result, err := gojsonschema.Validate(ls, ld)
	if err != nil {
		return errors.Wrap(err, "failed to Validate")
	}
	if result.Valid() {
		return nil
	}
	var ss []string
	for _, item := range result.Errors() {
		ss = append(ss, item.String())
	}
	return errors.New(strings.Join(ss, "; "))
}