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: dashboard_category_helpers.go
    path of file: ./repos/steampipe/pkg/steampipeconfig/modconfig
    
    the code of the file until where you have to start completion: package modconfig

import (
	"fmt"
	"github.com/hashicorp/hcl/v2"
)

// enrich the shell category by fetching from the ResourceMapsProvider
// this is used when a category has been retrieved via a HCL reference - as cty does not serialise all properties
func enrichCategory(shellCategory *DashboardCategory, parent HclResource, resourceMapProvider Resource
    
func enrichCategory(shellCategory *DashboardCategory, parent HclResource, resourceMapProvider ResourceMapsProvider) (*DashboardCategory, hcl.Diagnostics) {
	var diags hcl.Diagnostics
	resourceMaps := resourceMapProvider.GetResourceMaps()
	fullCategory, ok := resourceMaps.DashboardCategories[shellCategory.Name()]
	if !ok {
		diags.Append(&hcl.Diagnostic{
			Severity: hcl.DiagError,
			Summary:  fmt.Sprintf("%s contains edge %s but this has not been loaded", parent.Name(), shellCategory.Name()),
			Subject:  parent.GetDeclRange(),
		})
		return nil, diags
	}
	return fullCategory, diags
}