code: def test_multi_params(self):
      weights_params = ("weights", "weights_other")
      pretrained_params = [
          param.replace("weights", "pretrained")
          for param in weights_params
      ]
  
      @handle_legacy_interface(
          **{
              weights_param: (
                  pretrained_param,
                  self.ModelWeights.Sentinel,
              )
              for weights_param, pretrained_param in zip(
                  weights_params, pretrained_params
              )
          }
      )
      def builder(*, weights=None, weights_other=None):
          pass
  
      for pretrained_param in pretrained_params:
          with pytest.warns(UserWarning, match="deprecated"):
              builder(**{pretrained_param: True})
  
imports: import copy
  import os
  import pickle
  import pytest
  import test_models
  import torch
  from common_extended_utils import get_file_size_mb, get_ops
  from torchvision import models
  from torchvision.models import get_model_weights, Weights, WeightsEnum
  from torchvision.models._utils import handle_legacy_interface
  from torchvision.models.detection.backbone_utils import mobilenet_backbone, resnet_fpn_backbone
label_desc: Use image node_id 5 for calling the TestHandleLegacyInterface obj's underlying member method code with example usage: obj.test_multi_params() without return types