def _Exists(self):
    """Returns true if the internet gateway exists."""
    describe_cmd = util.AWS_PREFIX + [
        'ec2',
        'describe-internet-gateways',
        self.region % '--region=%s',
        '--filter=Name=internet-gateway-id,Values=%s' % self.id]
    stdout, _ = util.IssueRetryableCommand(describe_cmd)
    response = json.loads(stdout)
    internet_gateways = response['InternetGateways']
    assert len(internet_gateways) < 2, 'Too many internet gateways.'
    return len(internet_gateways) > 0
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/providers/aws/aws_network.py/AwsInternetGateway._Exists/swapped operands of `%`