code: def fake_faster_rcnn_model():
      class FakeFasterRCNNModel(nn.Module):
          def __init__(self):
              super().__init__()
              # hack for the function `model_device` to work
              self.layer = nn.Linear(1, 1)
  
          def forward(self, *args, **kwargs):
              return [
                  {
                      "scores": tensor([0.8, 0.9]),
                      "labels": tensor([1, 2]),
                      "boxes": tensor(
                          [[10, 10, 50, 50], [20, 20, 40, 40]]
                      ),
                  }
              ]
  
      return FakeFasterRCNNModel()
  
file_path: icevision/tests/models/torchvision_models/faster_rcnn/test_show_results.py
imports: import pytest
  from icevision.all import *
  from icevision.models.torchvision import faster_rcnn
label_desc: Use image node_id 1 for calling a global function with example usage: fake_faster_rcnn_model() and returns: FakeFasterRCNNModel, list