code: def __init__(
      self, samples: List[DetectionSample], class_names: List[str]
  ):
      self.samples = samples
      self.class_names = class_names
      self.num_classes = len(class_names)
  
file_path: pytorch-toolbelt/pytorch_toolbelt/datasets/providers/coco_detection.py
imports: import dataclasses
  import json
  import os.path
  from collections import defaultdict
  from typing import List
  import numpy
  from torch.utils.data import Dataset
label_desc: Use image node_id 1 to create a new COCODetectionDatasetReader object from inherited base classes: Dataset with example: obj = COCODetectionDatasetReader(samples, class_names)