def METHOD_NAME(self, parameters: Dict[str, Any]) -> TaskInfo:
    """Cancel a list of enqueued or processing tasks.
    Parameters
    ----------
    parameters:
        parameters accepted by the cancel tasks https://www.meilisearch.com/docs/reference/api/tasks#cancel-task.
    Returns
    -------
    task_info:
        TaskInfo instance containing information about a task to track the progress of an asynchronous process.
        https://www.meilisearch.com/docs/reference/api/tasks#get-one-task
    Raises
    ------
    MeilisearchApiError
        An error containing details about why Meilisearch can't process your request. Meilisearch error codes are described here: https://www.meilisearch.com/docs/reference/errors/error_codes#meilisearch-errors
    """
    for param in parameters:
        if isinstance(parameters[param], list):
            parameters[param] = ",".join(parameters[param])
    response = self.http.post(f"{self.config.paths.task}/cancel?{parse.urlencode(parameters)}")
    return TaskInfo(**response)