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

import (
	"fmt"
	"testing"

	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
	"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
	"github.com/hashicorp/terraform-provider-google/google/acctest"
	"github.com/hashicorp/terraform-provider-google/google/envvar"
	"github.com/hashicorp/terraform-provider-google/google/tpgresource"
	transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
)

// Since each test here is acting on the same organization and only one AccessPolicy
// can exist, they need to be run serially. See AccessPolicy for the test runner.

func testAccAccessContextManagerServicePerimeterEgressPolicy_basicTest(t *testing.T) {
	// Multiple fine-grained resources
	acctest.SkipIfVcr(t)
	org := envvar.GetTestOrgFromEnv(t)
	//projects := acctest.BootstrapServicePerimeterProjects(t, 1)
	policyTitle := acctest.RandString(t, 10)
	perimeterTit
    
func testAccAccessContextManagerServicePerimeterEgressPolicy_basic(org, policyTitle, perimeterTitleName string) string {
	return fmt.Sprintf(`
%s

resource "google_access_context_manager_service_perimeter_egress_policy" "test-access1" {
  perimeter = google_access_context_manager_service_perimeter.test-access.name
	egress_from {
		identity_type = "ANY_USER_ACCOUNT"
	}
	egress_to {
	  operations {
		service_name = "storage.googleapis.com"
		method_selectors {
		  method = "*"
	    }
	  }
	}

}

resource "google_access_context_manager_access_level" "test-access" {
  parent      = "accessPolicies/${google_access_context_manager_access_policy.test-access.name}"
  name        = "accessPolicies/${google_access_context_manager_access_policy.test-access.name}/accessLevels/level"
  title       = "level"
  description = "hello"
  basic {
    combining_function = "AND"
    conditions {
      ip_subnetworks = ["192.0.4.0/24"]
    }
  }
}

resource "google_access_context_manager_service_perimeter_egress_policy" "test-access2" {
	perimeter = google_access_context_manager_service_perimeter.test-access.name
	egress_from {
		identity_type = "ANY_USER_ACCOUNT"
		sources {
			access_level = google_access_context_manager_access_level.test-access.name
		}
		source_restriction = "SOURCE_RESTRICTION_ENABLED"
	}
}

`, testAccAccessContextManagerServicePerimeterEgressPolicy_destroy(org, policyTitle, perimeterTitleName))
}