class_docstr: Base model for object detection or instance segmentation with matching.
  
  This model implements the classification and matching parts which are shared
  between the object detection and instance segmentation models.
docstr: Returns a dict that lists all losses for this model.
docstr_tok: ["Returns","a","dict","that","lists","all","losses","for","this","model","."]
code: def loss_and_metrics_map(
      self,
  ) -> Dict[str, Callable[..., Tuple[ArrayDict, MetricsDict]]]:
      """Returns a dict that lists all losses for this model."""
      return {"labels": self.labels_losses_and_metrics}
  
imports: import abc
  import functools
  from typing import Any, Callable, Dict, Optional, Tuple
  import jax
  import jax.numpy
  import ml_collections
  import numpy
  from scenic.model_lib import matchers
  from scenic.model_lib.base_models import base_model
  from scenic.model_lib.base_models import box_utils
  from scenic.model_lib.base_models import model_utils
label_desc: Use image node_id 2 for calling the BaseModelWithMatching obj's underlying member method code with example usage: obj.loss_and_metrics_map() and returns: dict