code: def summary(
      model,
      input_size,
      batch_size=-1,
      device=torch.device("cuda:0"),
      dtypes=None,
  ):
      result, params_info = summary_string(
          model, input_size, batch_size, device, dtypes
      )
      print(result)
  
      return params_info
  
imports: import torch
  import torch.nn
  from torch.autograd import Variable
  from collections import OrderedDict
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: summary(model, input_size, batch_size, device, dtypes) and returns: params_info