def METHOD_NAME(filetype, filepath, options):
    if filetype == "shp":
        return ShpHelper(filepath, zip=False, encoding=options["shp_encoding"])
    if filetype == "shp.zip":
        return ShpHelper(filepath, zip=True, encoding=options["shp_encoding"])
    if filetype == "kml":
        return KmlHelper(filepath)
    if filetype == "geojson":
        return GeoJsonHelper(filepath)
    if filetype == "json":
        return JsonHelper(filepath)
    if filetype == "csv":
        return CsvHelper(
            filepath, options["csv_encoding"], options["csv_delimiter"]
        )
    raise ValueError("Unexpected file type: %s" % (filetype))