code: def register_all_coco_train_points(root):
      for (
          dataset_name,
          splits_per_dataset,
      ) in _PREDEFINED_SPLITS_COCO.items():
          for key, (
              image_root,
              json_file,
          ) in splits_per_dataset.items():
              # Assume pre-defined datasets live in `./datasets`.
              register_coco_instances_with_points(
                  key,
                  _get_builtin_metadata(dataset_name),
                  os.path.join(root, json_file)
                  if "://" not in json_file
                  else json_file,
                  os.path.join(root, image_root),
              )
  
imports: import logging
  import os
  from detectron2.data import DatasetCatalog, MetadataCatalog
  from detectron2.data.datasets.builtin import _get_builtin_metadata
  from detectron2.data.datasets.coco import load_coco_json
label_desc: Use image node_id 2 for calling a global function with example usage: register_all_coco_train_points(root) without return types