code: def _get_subnet_ids_by_name(ec2_client, name):
      desc = ec2_client.describe_subnets(
          Filters=[{"Name": "tag-value", "Values": [name]}]
      )
      if len(desc["Subnets"]) == 0:
          return None
      else:
          return [subnet["SubnetId"] for subnet in desc["Subnets"]]
  
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 1 for calling a global function with example usage: _get_subnet_ids_by_name(ec2_client, name) and returns: None, unknown