code: def clone_replace_name(self, new_name):
          
          if not self.bucket_name:
              raise InvalidUriError('clone_replace_name() on bucket-less URI %s' %
                                    self.uri)
          return BucketStorageUri(
              self.scheme, self.bucket_name, new_name, self.debug,
              suppress_consec_slashes=self.suppress_consec_slashes)
docs: Instantiate a BucketStorageUri from the current BucketStorageUri,
          but replacing the object_name.
  
          @type new_name: string
          @param new_name: new object name