code: def _vpc_id_by_name(ec2_client, name):
      desc = ec2_client.describe_vpcs(
          Filters=[{"Name": "tag-value", "Values": [name]}]
      )
      vpc_id = desc["Vpcs"][0]["VpcId"]
      return vpc_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 5 for calling a global function with example usage: _vpc_id_by_name(ec2_client, name) and returns: vpc_id