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: registry.go
    path of file: ./repos/podman/vendor/tags.cncf.io/container-device-interface/pkg/cdi
    
    the code of the file until where you have to start completion: /*
   Copyright Â© 2021 The CDI Authors

   Licensed under the Apache License, Vers
    
func GetRegistry(options ...Option) Registry {
	var new bool
	initOnce.Do(func() {
		reg, _ = getRegistry(options...)
		new = true
	})
	if !new && len(options) > 0 {
		reg.Configure(options...)
		reg.Refresh()
	}
	return reg
}