code: def remove_weights_related_keys_from_params(
      params: Params,
      keys: List[str] = ["pretrained_file", "initializer"],
  ):
      remove_keys_from_params(params, keys)
  
imports: import logging
  import os
  from os import PathLike
  import re
  from typing import Dict, List, Set, Type, Optional, Union
  import numpy
  import torch
  from allennlp.common.checks import ConfigurationError
  from allennlp.common.params import Params, remove_keys_from_params
  from allennlp.common.registrable import Registrable
  from allennlp.data import Instance, Vocabulary
  from allennlp.data.batch import Batch
  from allennlp.nn import util
  from allennlp.nn.module import Module
  from allennlp.nn.parallel import DdpAccelerator
  from allennlp.nn.regularizers import RegularizerApplicator
label_desc: Use image node_id 1 for calling a global function with example usage: remove_weights_related_keys_from_params(params, keys) without return types