code: def overwrite_eps(model, eps):
      """
      This method overwrites the default eps values of all the
      FrozenBatchNorm2d layers of the model with the provided value.
      This is necessary to address the BC-breaking change introduced
      by the bug-fix at pytorch/vision#2933. The overwrite is applied
      only when the pretrained weights are loaded to maintain compatibility
      with previous versions.
  
      Args:
          model (nn.Module): The model on which we perform the overwrite.
          eps (float): The new value of eps.
      """
      for module in model.modules():
          if isinstance(module, FrozenBatchNorm2d):
              module.eps = eps
  
file_path: deep-learning-for-image-processing/pytorch_object_detection/faster_rcnn/backbone/resnet50_fpn_model.py
imports: import os
  import torch
  import torch.nn
  from torchvision.ops.misc import FrozenBatchNorm2d
  from .feature_pyramid_network import BackboneWithFPN, LastLevelMaxPool
label_desc: Use image node_id 1 for calling a global function with example usage: overwrite_eps(model, eps) without return types