code: def _fix_res5_block(self, config: omegaconf.DictConfig):
      res5_halve = config.MODEL.ROI_BOX_HEAD.RES5HALVE
      if not res5_halve:
          """
          Modifications for VG in RoI heads:
          1. Change the stride of conv1 and shortcut in Res5.Block1 from 2 to 1
          2. Modifying all conv2 with (padding: 1 --> 2) and (dilation: 1 --> 2)
          """
          self.roi_heads.res5[0].conv1.stride = (1, 1)
          self.roi_heads.res5[0].shortcut.stride = (1, 1)
          for i in range(3):
              self.roi_heads.res5[i].conv2.padding = (2, 2)
              self.roi_heads.res5[i].conv2.dilation = (2, 2)
  
file_path: mmf/mmf/models/frcnn.py
imports: from typing import List
  import omegaconf
  import torch
  from torch import nn
  from torch.nn import functional
label_desc: Use image node_id 3 for calling the GeneralizedRCNN obj's underlying member method code with example usage: obj._fix_res5_block(config) without return types