def METHOD_NAME(task_id: int) -> List[Dict]:
    logger = logging.getLogger("app")
    with ApiClient(configuration) as api_client:
        try:
            (data, response) = api_client.jobs_api.list(task_id=task_id)
            return data
        except exceptions.ApiException as e:
            logger.error(f"Exception when calling JobsApi.list: {e}\n")