def getDatasetId(chunk_id):
    """ Get dataset id given a chunk id
    """
    n = chunk_id.find('-') + 1
    if n <= 0:
        raise ValueError("Unexpected chunk id")
    obj_uuid = chunk_id[n:(36+n)]
    dset_id = "d-" + obj_uuid
    return dset_id