code: def _flatten(args, out):
      if isinstance(args, tuple):
          for arg in args:
              _flatten(arg, out)
      else:
          # Combine consecutive Ellipsis.
          if args is Ellipsis and out and out[-1] is Ellipsis:
              return
          out.append(args)
  
file_path: pyro/pyro/ops/indexing.py
imports: import torch
label_desc: Use image node_id 2 for calling a global function with example usage: _flatten(args, out) without return types