code: def build_detector(cfg, train_cfg=None, test_cfg=None):
      """Build detector."""
      return build(
          cfg, DETECTORS, dict(train_cfg=train_cfg, test_cfg=test_cfg)
      )
  
file_path: insightface/detection/scrfd/mmdet/models/builder.py
imports: from mmcv.utils import Registry, build_from_cfg
  from torch import nn
label_desc: Use image node_id 8 for calling a global function with example usage: build_detector(cfg, train_cfg, test_cfg) and returns: build