class_docstr: Base class for anchor generators for the task of object detection.
code: def _generate_anchors(
      self,
      height: int,
      width: int,
      output_stride: int,
      device: Optional[str] = "cpu",
      *args,
      **kwargs,
  ) -> Union[Tensor, Tuple[Tensor, ...]]:
      raise NotImplementedError
  
file_path: ml-cvnets/cvnets/anchor_generator/base_anchor_generator.py
imports: import argparse
  from typing import Optional, Tuple, Union
  import torch
  from torch import Tensor
label_desc: Use image node_id 4 for calling the BaseAnchorGenerator obj's underlying member method code with example usage: obj._generate_anchors(height, width, output_stride, device) without return types