docstr: Args:
      name (str): the name of the dataset split, e.g. "coco_train2017"
      func: a function which returns an instance of `DatasetSplit`
code: def register(name, func):
      """
      Args:
          name (str): the name of the dataset split, e.g. "coco_train2017"
          func: a function which returns an instance of `DatasetSplit`
      """
      assert (
          name not in DatasetRegistry._registry
      ), "Dataset {} was registered already!".format(name)
      DatasetRegistry._registry[name] = func
  
file_path: tensorpack/examples/FasterRCNN/dataset/dataset.py
imports: from collections import defaultdict
label_desc: Use image node_id 1 for calling the DatasetRegistry obj's underlying member method code with example usage: obj.register(name, func) without return types