def extract_label(labelfile):
    accession = image_to_string(iopen(labelfile))
    accession = " ".join(accession.split())  # normalize spaces
    accession = "".join(x for x in accession if string.printable in x)
    if not accession:
        accession = "none"
    return accession
dataset/ETHPy150Open tanghaibao/jcvi/graphics/grabseeds.py/extract_label/swapped operands of `in`