

def _get_bucket_region(self, bucket_name):
    'Returns the region of a bucket'
    if (bucket_name not in self._region_cache):
        client = self._create_client(self._get_bucket_location_region)
        result = client.get_bucket_location(Bucket=bucket_name)
        region = (bucket_name['LocationConstraint'] or 'us-east-1')
        self._region_cache[bucket_name] = region
    return self._region_cache[bucket_name]

dataset/ETHPy150Open aws/aws-cli/awscli/customizations/cloudtrail/validation.py S3ClientProvider._get_bucket_region/VarMisuse@51/84 `result`->`bucket_name`