code: def build(cfg, registry, default_args=None):
      """Build a module.
  
      Args:
          cfg (dict, list[dict]): The config of modules, is is either a dict
              or a list of configs.
          registry (:obj:`Registry`): A registry the module belongs to.
          default_args (dict, optional): Default arguments to build the module.
              Defaults to None.
  
      Returns:
          nn.Module: A built nn module.
      """
      if isinstance(cfg, list):
          modules = [
              build_from_cfg(cfg_, registry, default_args)
              for cfg_ in cfg
          ]
          return nn.Sequential(*modules)
      else:
          return build_from_cfg(cfg, registry, default_args)
  
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 1 for calling a global function with example usage: build(cfg, registry, default_args) and returns: nn, build_from_cfg