code: def _create_vpc_with_name_efs_fsx(ec2_client, name):
      (
          vpc_id,
          [subnet_id_a, subnet_id_b],
          security_group_id,
      ) = _create_vpc_resources(ec2_client, name)
      ec2_client.modify_vpc_attribute(
          EnableDnsHostnames={"Value": True}, VpcId=vpc_id
      )
  
      ig = ec2_client.create_internet_gateway()
      internet_gateway_id = ig["InternetGateway"]["InternetGatewayId"]
      ec2_client.attach_internet_gateway(
          InternetGatewayId=internet_gateway_id, VpcId=vpc_id
      )
  
      route_table_id = _route_table_id(ec2_client, vpc_id)
      ec2_client.create_route(
          DestinationCidrBlock="0.0.0.0/0",
          GatewayId=internet_gateway_id,
          RouteTableId=route_table_id,
      )
      ec2_client.associate_route_table(
          RouteTableId=route_table_id, SubnetId=subnet_id_a
      )
      ec2_client.associate_route_table(
          RouteTableId=route_table_id, SubnetId=subnet_id_b
      )
  
      ec2_client.authorize_security_group_ingress(
          GroupId=security_group_id,
          IpPermissions=[
              {
                  "IpProtocol": "tcp",
                  "FromPort": 988,
                  "ToPort": 988,
                  "UserIdGroupPairs": [{"GroupId": security_group_id}],
              },
              {
                  "IpProtocol": "tcp",
                  "FromPort": 2049,
                  "ToPort": 2049,
                  "UserIdGroupPairs": [{"GroupId": security_group_id}],
              },
              {
                  "IpProtocol": "tcp",
                  "FromPort": 22,
                  "ToPort": 22,
                  "IpRanges": [
                      {
                          "CidrIp": "0.0.0.0/0",
                          "Description": "For SSH to EC2",
                      }
                  ],
              },
          ],
      )
  
      return [subnet_id_a], [security_group_id]
  
file_path: sagemaker-python-sdk/tests/integ/vpc_test_utils.py
imports: from __future__ import absolute_import
  import os
  import tempfile
  import tests.integ.lock
label_desc: Use image node_id 8 for calling a global function with example usage: _create_vpc_with_name_efs_fsx(ec2_client, name) and returns: list,  list