def get_pipe_dict(d, i):
    """
    given a dictionary d for a given instrument, return the dictionary for the
    ith pipeline version
    """
    pipe_versions = list(d.keys())
    k = pipe_versions[i]
    mode = list(d[k].keys())[0]
    return d[k][mode]