def METHOD_NAME(self, content, **blob_meta_args):
    meta = self.metadb.new(**blob_meta_args)
    path = self.get_path(meta.key)
    dirpath = dirname(path)
    if not isdir(dirpath):
        os.makedirs(dirpath)
    if meta.is_compressed:
        content = GzipStream(content)
    chunk_sizes = []
    digest = md5()
    with open(path, "wb") as fh:
        while True:
            chunk = content.read(CHUNK_SIZE)
            if not chunk:
                break
            fh.write(chunk)
            chunk_sizes.append(len(chunk))
            digest.update(chunk)
    meta.content_length, meta.compressed_length = get_content_size(content, chunk_sizes)
    self.metadb.METHOD_NAME(meta)
    return meta