code: def _wait(
      future: Optional[futures.Future],
  ) -> Any:  # pylint: disable=g-bare-generic
      if future is None:
          return None
      return future.result()
  
file_path: scenic/scenic/projects/baselines/deformable_detr/evaluate.py
imports: from concurrent import futures
  from typing import Any, Callable, Dict, Optional, Sequence, Tuple
  from absl import logging
  from flax import jax_utils
  import flax.linen
  import jax
  import jax.numpy
  import numpy
  from scenic.dataset_lib.dataset_utils import Dataset
  from scenic.projects.baselines.deformable_detr.coco_eval import DeformableDetrGlobalEvaluator
  from scenic.projects.baselines.deformable_detr.coco_eval import prepare_coco_eval_dicts
  from scenic.projects.baselines.detr import train_utils
  from scenic.train_lib import train_utils
label_desc: Use image node_id 2 for calling a global function with example usage: _wait(future) and returns: future, None