class_docstr: Dummy SSD Detection Dataset for CI/CD testing
  
  Args:
      opts: command-line arguments
docstr: Generate anchors **on-the-fly** based on the input resolution.
code: def generate_anchors(self, height, width):
      """Generate anchors **on-the-fly** based on the input resolution."""
      anchors = []
      for output_stride in self.output_strides:
          if output_stride == -1:
              fm_width = fm_height = 1
          else:
              fm_width = int(math.ceil(width / output_stride))
              fm_height = int(math.ceil(height / output_stride))
          fm_anchor = self.anchor_box_generator(
              fm_height=fm_height,
              fm_width=fm_width,
              fm_output_stride=output_stride,
          )
          anchors.append(fm_anchor)
      anchors = torch.cat(anchors, dim=0)
      return anchors
  
file_path: ml-cvnets/tests/dummy_datasets/ssd_detection.py
imports: import math
  from typing import Dict, Tuple
  import torch
  import torch.utils.data
  from cvnets.anchor_generator import build_anchor_generator
  from cvnets.matcher_det import build_matcher
label_desc: Use image node_id 2 for calling the DummySSDDetectionDataset obj's underlying member method code with example usage: obj.generate_anchors(height, width) and returns: anchors