def METHOD_NAME(sagemaker_session, name=VPC_NAME):
    # use lock to prevent race condition when tests are running concurrently
    with lock.lock(LOCK_PATH_EFS):
        ec2_client = sagemaker_session.boto_session.client("ec2")
        if _vpc_exists(ec2_client, name):
            vpc_id = _vpc_id_by_name(ec2_client, name)
            return (
                _get_subnet_ids_by_name(ec2_client, name),
                _security_group_ids_by_vpc_id(sagemaker_session, vpc_id),
            )
        else:
            return _create_vpc_with_name_efs_fsx(ec2_client, name)