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: resource_loader.go
    path of file: ./repos/octant/internal/describer
    
    the code of the file until where you have to start completion: /*
 * Copyright (c) 2020 the Octant contributors. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package describer

import (
	"context"
	"errors"
	"fmt"

	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

	"github.com/vmware-tanzu/octant/internal/gvk"
	"github.com/vmware-tanzu/octant/pkg/store"
)

// ResourceDescriptor describes a custom resource.
type ResourceDescriptor struct {
	CustomResourceDefinitionName string
	Namespace                    string
	CustomResourceVersion        string
	CustomResourceName           string
}

// ResourceLoadResponse is a response from a from ResourceLoader.
type ResourceLoadResponse struct {
	// CustomRes
    
func (rl *StoreResourceLoader) Load(ctx context.Context, d ResourceDescriptor) (*ResourceLoadResponse, error) {
	crd, err := CustomResourceDefinition(ctx, d.CustomResourceDefinitionName, rl.store)
	if err != nil {
		return nil, fmt.Errorf("find custom resource definition %q: %w", d.CustomResourceDefinitionName, err)
	}

	crGVK, err := gvk.CustomResource(crd, d.CustomResourceVersion)
	if err != nil {
		return nil, fmt.Errorf("get group/version/kind for custom resource: %w", err)
	}

	apiVersion, kind := crGVK.ToAPIVersionAndKind()

	key := store.Key{
		Namespace:  d.Namespace,
		APIVersion: apiVersion,
		Kind:       kind,
		Name:       d.CustomResourceName,
	}

	object, err := rl.store.Get(ctx, key)
	if err != nil {
		return nil, err
	}

	if object == nil {
		return nil, errors.New("object is nil")
	}

	return &ResourceLoadResponse{
		CustomResource:           object,
		CustomResourceDefinition: crd,
	}, nil
}