code: def flatten(sequence):
      return (
          torch.cat([p.reshape(-1) for p in sequence])
          if len(sequence) > 0
          else torch.tensor([])
      )
  
file_path: torchsde/torchsde/_core/misc.py
imports: import warnings
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: flatten(sequence) and returns: unknown