code: def get_bucket_region(self, bucket) -> str:
          
          region = self.s3_client.get_bucket_location(Bucket=bucket)["LocationConstraint"]
          return 'us-east-1' if region is None else region
docs: Get region associated with a specified bucket name.
          :param bucket: the bucket to be checked.
          :return: region, Note that underlying AWS API returns None for default US-East-1,
          I'm replacing that with us-east-1.