def default_fused_linear_keys_renamer(keys):
    """Create new keys for fused tasks."""
    typ = type(keys[0])
    if typ is str:
        names = [key_split(x) for x in keys[:0:-1]]
        names.append(keys[0])
        return "-".join(names)
    if typ is tuple and len(keys[0]) > 0 and isinstance(keys[0][0], str):
        names = [key_split(x) for x in keys[:0:-1]]
        names.append(keys[0][0])
        return ("-".join(names),) + keys[0][1:]
    return None
Create new keys for fused tasks.
src/flash/core/serve/dag/optimization.py