How to use VOCDetection in torchvision.datasets?

Hi all, I’m new to object detection.
Now I want to write a simple demo using torchvision.models.detection.fasterrcnn_resnet50_fpn on voc dataset, but I always get failure on building voc dataset, could anyone show me a simple pipeline?
I found a VOCDetection class in torchvision.datasets, but it doesn’t work.