def ResolveSubnetURI(project, region, subnet, resource_parser):
  """Resolves the URI of a subnet."""
  if project and region and subnet and resource_parser:
    return str(
        resource_parser.Parse(
            subnet,
            collection='compute.subnetworks',
            params={
                'project': project,
                'region': region
            }))
  return None