def METHOD_NAME(val: str) -> "SupervisordKresID":
    if val == "cache-gc" or val == "cache-gc:cache-gc":
        # the double name is checked because thats how we read it from supervisord
        return SupervisordKresID.new(SubprocessType.GC, 0)
    else:
        val = val.replace("kresd:kresd", "")
        return SupervisordKresID.new(SubprocessType.KRESD, int(val))