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_compute_instance_template_migrate_internal_test.go
    path of file: ./repos/magic-modules/mmv1/third_party/terraform/services/compute
    
    the code of the file until where you have to start completion: package compute

import (
	"testing"

	"reflect"
	"strings"

	"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
)

f
    
func TestComputeInstanceTemplateMigrateState_empty(t *testing.T) {
	var is *terraform.InstanceState
	var meta interface{}

	// should handle nil
	is, err := resourceComputeInstanceTemplateMigrateState(0, is, meta)

	if err != nil {
		t.Fatalf("err: %#v", err)
	}
	if is != nil {
		t.Fatalf("expected nil instancestate, got: %#v", is)
	}

	// should handle non-nil but empty
	is = &terraform.InstanceState{}
	_, err = resourceComputeInstanceTemplateMigrateState(0, is, meta)

	if err != nil {
		t.Fatalf("err: %#v", err)
	}
}