def dict_to_param_str(d):
    """
    Represents a dictionary as a concatenated list of key1_value1_key2_value2_...
    """
    s = []
    for k, v in d.items():
        s.append(k)
        s.append(v)
    return '_'.join(map(str, s))
