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: handle_load.go
    path of file: ./repos/ShadowEditor/server/server/assets/scene
    
    the code of the file until where you have to start completion: // Copyright 2017-2020 The ShadowEditor Authors. All
    
func Load(w http.ResponseWriter, r *http.Request) {
	r.ParseForm()
	id, err := primitive.ObjectIDFromHex(strings.TrimSpace(r.FormValue("ID")))
	if err != nil {
		helper.WriteJSON(w, server.Result{
			Code: 300,
			Msg:  "ID is not allowed.",
		})
	}
	version := -1
	if _version, err := strconv.Atoi(strings.TrimSpace(r.FormValue("Version"))); err == nil {
		version = _version
	}

	db, err := server.Mongo()
	if err != nil {
		helper.WriteJSON(w, server.Result{
			Code: 300,
			Msg:  err.Error(),
		})
		return
	}

	filter := bson.M{
		"ID": id,
	}
	doc := bson.M{}
	find, _ := db.FindOne(server.SceneCollectionName, filter, &doc)

	if !find {
		helper.WriteJSON(w, server.Result{
			Code: 300,
			Msg:  "The scene is not existed!",
		})
		return
	}

	collectionName := doc["CollectionName"].(string)

	docs := bson.A{}
	if version == -1 {
		db.FindAll(collectionName, &docs)
	} else {
		filter = bson.M{
			server.VersionField: version,
		}
		db.FindMany(collectionName+server.HistorySuffix, filter, &docs)
	}

	helper.WriteJSON(w, server.Result{
		Code: 200,
		Msg:  "Get Successfully!",
		Data: docs,
	})
}