code: def test_standard_anchor_generator():
      from mmdet.models.task_modules import build_anchor_generator
  
      anchor_generator_cfg = dict(
          type="AnchorGenerator",
          scales=[8],
          ratios=[0.5, 1.0, 2.0],
          strides=[4, 8],
      )
  
      anchor_generator = build_anchor_generator(anchor_generator_cfg)
      assert (
          anchor_generator.num_base_priors
          == anchor_generator.num_base_anchors
      )
      assert anchor_generator.num_base_priors == [3, 3]
      assert anchor_generator is not None
  
file_path: mmdetection/tests/test_models/test_task_modules/test_prior_generators/test_anchor_generator.py
imports: import pytest
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: test_standard_anchor_generator() without return types