class_docstr: Basic interface class to merge inputs into a single list
  
  ``Merge(1)`` will merge a list of lists
  
  Examples
  --------
  
  >>> from nipype.interfaces.utility import Merge
  >>> mi = Merge(3)
  >>> mi.inputs.in1 = 1
  >>> mi.inputs.in2 = [2, 5]
  >>> mi.inputs.in3 = 3
  >>> out = mi.run()
  >>> out.outputs.out
  [1, 2, 5, 3]
  
  >>> merge = Merge(1)
  >>> merge.inputs.in1 = [1, [2, 5], 3]
  >>> out = merge.run()
  >>> out.outputs.out
  [1, [2, 5], 3]
  
  >>> merge = Merge(1)
  >>> merge.inputs.in1 = [1, [2, 5], 3]
  >>> merge.inputs.ravel_inputs = True
  >>> out = merge.run()
  >>> out.outputs.out
  [1, 2, 5, 3]
  
  >>> merge = Merge(1)
  >>> merge.inputs.in1 = [1, [2, 5], 3]
  >>> merge.inputs.no_flatten = True
  >>> out = merge.run()
  >>> out.outputs.out
  [[1, [2, 5], 3]]
class_docstr_tok: ["Basic","interface","class","to","merge","inputs","into","a","single","list","``","Merge","(","1",")","``","will","merge","a","list","of","lists","Examples","--","--","--","--",">",">",">","from","nipype.interfaces.utility","import","Merge",">",">",">","mi","=","Merge","(","3",")",">",">",">","mi.inputs.in1","=","1",">",">",">","mi.inputs.in2","=","[","2",",","5","]",">",">",">","mi.inputs.in3","=","3",">",">",">","out","=","mi.run","(",")",">",">",">","out.outputs.out","[","1",",","2",",","5",",","3","]",">",">",">","merge","=","Merge","(","1",")",">",">",">","merge.inputs.in1","=","[","1",",","[","2",",","5","]",",","3","]",">",">",">","out","=","merge.run","(",")",">",">",">","out.outputs.out","[","1",",","[","2",",","5","]",",","3","]",">",">",">","merge","=","Merge","(","1",")",">",">",">","merge.inputs.in1","=","[","1",",","[","2",",","5","]",",","3","]",">",">",">","merge.inputs.ravel_inputs","=","True",">",">",">","out","=","merge.run","(",")",">",">",">","out.outputs.out","[","1",",","2",",","5",",","3","]",">",">",">","merge","=","Merge","(","1",")",">",">",">","merge.inputs.in1","=","[","1",",","[","2",",","5","]",",","3","]",">",">",">","merge.inputs.no_flatten","=","True",">",">",">","out","=","merge.run","(",")",">",">",">","out.outputs.out","[","[","1",",","[","2",",","5","]",",","3","]","]"]
code: def __init__(self, numinputs=0, **inputs):
      super().__init__(**inputs)
      self._numinputs = numinputs
      if numinputs >= 1:
          input_names = ["in%d" % (i + 1) for i in range(numinputs)]
      else:
          input_names = []
      add_traits(self.inputs, input_names)
  
imports: import os
  import re
  import numpy
  from ..base import traits, TraitedSpec, DynamicTraitedSpec, File, Undefined, isdefined, OutputMultiPath, InputMultiPath, BaseInterface, BaseInterfaceInputSpec, Str, SimpleInterface
  from ..io import IOBase, add_traits
  from ...utils.filemanip import ensure_list, copyfile, split_filename
label_desc: Use image node_id 1 to create a new Merge object from inherited base classes: IOBase with example: obj = Merge(numinputs)