code: def params_to_type(params, totype):
      new_params = []
      for param in params:
          new_params.append(param.type(totype))
      return new_params
  
imports: import torch
  import torch.nn
  from torch._utils import _flatten_dense_tensors, _unflatten_dense_tensors
label_desc: Use image node_id 9 for calling a global function with example usage: params_to_type(params, totype) and returns: new_params