def decode_to_string(toDecode):
    try:
        return toDecode.decode('utf-8')
    except AttributeError: # bytesToDecode was of type string before
        return toDecode
Simple utility method used to give back a list of all possible primitive data sample types.
dataset/ETHPy150Open sosy-lab/benchexec/benchexec/util.py/decode_to_string--crossover with--dataset/ETHPy150Open datastax/python-driver/tests/integration/standard/utils.py/get_all_primitive_params