def hyperparameter_names(model_string):
    parts = []
    params = re.findall(r"(\{\{[^}]+}\})", model_string)
    for param in params:
        name = re.findall(r"(\w+(?=\s*[\=\(]\s*" + re.escape(param) + r"))", model_string)
        if len(name) > 0:
            parts.append(name[0])
        else:
            parts.append(parts[-1])
    # parts = re.findall(r"(\w+(?=\s*[\=\(]\s*\{\{[^}]+}\}))", model_string)
    print("PARTS:")
    for part in parts:
        print(part)
    part_dict = {}
    for i, part in enumerate(parts):
        if part_dict.keys() in part:
            part_dict[part] += 1
            parts[i] = part + "_" + str(part_dict[part])
        else:
            part_dict[part] = 0
    return parts
dataset/ETHPy150Open maxpumperla/hyperas/hyperas/optim.py/hyperparameter_names/swapped operands of `in`