def prep_datadir(pack, args):
    if "datadir" in pack:
        return pack["datadir"], args
    elif pack["type"] == "S3":
        return _unpack_s3(pack["buckets"]["biodata"], args)
    else:
        raise ValueError(pack % "Cannot handle biodata directory preparation type: %s")
dataset/ETHPy150Open chapmanb/bcbio-nextgen-vm/bcbiovm/ship/reconstitute.py/prep_datadir/swapped operands of `%`