<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def vectorize(data, cloud=None, api_key=None, version=None, **kwargs):
 """ Support for raw features from the custom collections API """

    batch = detect_batch(data)
    data = data_preprocess(data, batch=batch)
    url_params = {"batch": batch, "api_key": api_key, "version": version, "method": "vectorize"}
    return api_handler(data, cloud=cloud, api="custom", url_params=url_params, **kwargs)