import hashlib


def basefn(cc, test_name, inp):
    """Generate opaque filesystem-safe filename
    inp can be "" or None (returning different hashes)
    """
    d = f"{cc}:{test_name}:{inp}"
    h = hashlib.shake_128(d.encode()).hexdigest(16)
    return h