class_docstr: dask-compatible wrapper that executes a batch of tasks
class_docstr_tok: ["dask-compatible","wrapper","that","executes","a","batch","of","tasks"]
code: def __init__(self, tasks):
      # collect some metadata from the tasks to ease Batch calls
      # introspection when debugging
      (
          self._num_tasks,
          self._mixed,
          self._funcname,
      ) = _make_tasks_summary(tasks)
  
imports: from __future__ import print_function, division, absolute_import
  import asyncio
  import concurrent.futures
  import contextlib
  import time
  from uuid import uuid4
  import weakref
  from .parallel import parallel_config
  from .parallel import AutoBatchingMixin, ParallelBackendBase
label_desc: Use image node_id 1 to create a new Batch object  with example: obj = Batch(tasks)