def get_recommendations(mid, conn):
    """
    Grab recommendations for a single mid.
    Returns multiple recommendation types as a dictionary.

    Example Return
    --------------
    {
        'l2r': [mid1, mid2, mid3],
        'wrmf': [mid5, mid6, mid7
    }

    """
    c = conn.cursor()
    sql = """
        SELECT
          type,
          recommended
        FROM recommendations
        WHERE
          mid = '{}'
    """.format(mid)
    c.execute(sql)
    results = c.fetchall()
    if results:
        out = []
        for r in results:
            out.append((r[0], [str(x) for x in r[1].split(',')]))
        out = dict(out)
    else:
        out = None
    return out