<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_feature_layer(ds, sql, name="layer"):
 """ creates a feature layer object """

    if arcpyFound == False:
        raise Exception("ArcPy is required to use this function")
    result = arcpy.MakeFeatureLayer_management(in_features=ds,
                                               out_layer=name,
                                               where_clause=sql)
    return result[0]