def METHOD_NAME(rec):
    if rec['g'] == 1:
        #print("Searched for curve for %s") % rec['label']
        return genus1_lookup_equation(rec)
    elif rec['g'] == 2:
        if rec['base_field'] == [-1, 1]: # currently LMFDB only has g2 curves over QQ
            #print("Searched for curve for %s") % rec['label']
            return genus2_lookup_equation(rec)