class_docstr: Store mappings from names to third-party models.
class_docstr_tok: ["Store","mappings","from","names","to","third-party","models","."]
code: def _get_c2_detectron_baseline(name):
      name = name[len("Caffe2Detectron/COCO/") :]
      url = ModelCatalog.C2_DETECTRON_MODELS[name]
      if "keypoint_rcnn" in name:
          dataset = ModelCatalog.C2_DATASET_COCO_KEYPOINTS
      else:
          dataset = ModelCatalog.C2_DATASET_COCO
  
      if "35998355/rpn_R-50-C4_1x" in name:
          # this one model is somehow different from others ..
          type = "rpn"
      else:
          type = "generalized_rcnn"
  
      # Detectron C2 models are stored in the structure defined in `C2_DETECTRON_PATH_FORMAT`.
      url = ModelCatalog.C2_DETECTRON_PATH_FORMAT.format(
          prefix=ModelCatalog.S3_C2_DETECTRON_PREFIX,
          url=url,
          type=type,
          dataset=dataset,
      )
      return url
  
file_path: detectron2/detectron2/checkpoint/catalog.py
imports: import logging
  from detectron2.utils.file_io import PathHandler, PathManager
label_desc: Use image node_id 3 for calling the ModelCatalog obj's underlying member method code with example usage: obj._get_c2_detectron_baseline(name) and returns: url