class_docstr: Base class of Matcher, which matches boxes and anchors to each other
  
  Args:
      similarity_fn: function for similarity computation between
          boxes and anchors
class_docstr_tok: ["Base","class","of","Matcher",",","which","matches","boxes","and","anchors","to","each","other","Args",":","similarity_fn",":","function","for","similarity","computation","between","boxes","and","anchors"]
code: def __init__(self, similarity_fn: Callable[[Tensor, Tensor], Tensor] = box_iou):  # type: ignore
      self.similarity_fn = similarity_fn
  
file_path: MONAI/monai/apps/detection/utils/ATSS_matcher.py
imports: from __future__ import annotations
  import logging
  from abc import ABC, abstractmethod
  from collections.abc import Callable, Sequence
  from typing import TypeVar
  import torch
  from torch import Tensor
  from monai.data.box_utils import COMPUTE_DTYPE, box_iou, boxes_center_distance, centers_in_boxes
  from monai.utils.type_conversion import convert_to_tensor
label_desc: Use image node_id 1 to create a new Matcher object from inherited base classes: ABC with example: obj = Matcher(similarity_fn)