code: def get_or_create_vpc_resources(ec2_client):
      # use lock to prevent race condition when tests are running concurrently
      with lock.lock(LOCK_PATH):
          if _vpc_exists(ec2_client, VPC_NAME):
              print("using existing vpc: {}".format(VPC_NAME))
              return (
                  _get_subnet_ids_by_name(ec2_client, VPC_NAME),
                  _get_security_id_by_name(ec2_client, VPC_NAME),
              )
          else:
              print("creating new vpc: {}".format(VPC_NAME))
              return _create_vpc_with_name(ec2_client, VPC_NAME)
  
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 11 for calling a global function with example usage: get_or_create_vpc_resources(ec2_client) and returns: _get_subnet_ids_by_name,  _get_security_id_by_name, _create_vpc_with_name