def METHOD_NAME(f, fact_table_name, dimension, attribute_name):
    column_ref = dimension['attributes'][attribute_name]['column']
    table_name, column_name = qualify(fact_table_name, column_ref)
    f.write("CREATE INDEX %s_%s_idx ON %s (%s);\n"
            % (table_name, column_name, table_name, column_name))