docs: 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]