Yeah, you were right. You cannot simply import this methods without copying some files first.
From the tutorial 443:

In references/detection/ , we have a number of helper functions to simplify training and evaluating detection models. Here, we will use references/detection/engine.py , references/detection/utils.py and references/detection/transforms.py . Just copy them to your folder and use them here.