code: def flatten_list(tens_list):
      """
      flatten_list
      """
      if not is_iterable(tens_list):
          return tens_list
  
      return torch.cat(tens_list, dim=0).view(
          len(tens_list), *tens_list[0].size()
      )
  
imports: import torch
  import torch.nn
  from torch.autograd import Variable
  import torch.nn.functional
  import math
label_desc: Use image node_id 2 for calling a global function with example usage: flatten_list(tens_list) and returns: torch, tens_list