Calculates hash ids and writes contents of given data blobs.

    Args:
      blobs_data: An iterable of bytes.

    Returns:
      A list of rdf_objects.BlobID objects with each blob id corresponding
      to an element in the original blobs_data argument.

def WriteBlobsWithUnknownHashes(
      self, blobs_data):
    """Calculates hash ids and writes contents of given data blobs.

    Args:
      blobs_data: An iterable of bytes.

    Returns:
      A list of rdf_objects.BlobID objects with each blob id corresponding
      to an element in the original blobs_data argument.
    """
    blobs_ids = [rdf_objects.BlobID.FromBlobData(d) for d in blobs_data]
    self.WriteBlobs(dict(zip(blobs_ids, blobs_data)))
    return blobs_ids