class_docstr: Basic interface class to select specific elements from a list
  
  Examples
  --------
  
  >>> from nipype.interfaces.utility import Select
  >>> sl = Select()
  >>> _ = sl.inputs.trait_set(inlist=[1, 2, 3, 4, 5], index=[3])
  >>> out = sl.run()
  >>> out.outputs.out
  4
  
  >>> _ = sl.inputs.trait_set(inlist=[1, 2, 3, 4, 5], index=[3, 4])
  >>> out = sl.run()
  >>> out.outputs.out
  [4, 5]
class_docstr_tok: ["Basic","interface","class","to","select","specific","elements","from","a","list","Examples","--","--","--","--",">",">",">","from","nipype.interfaces.utility","import","Select",">",">",">","sl","=","Select","(",")",">",">",">","_","=","sl.inputs.trait_set","(","inlist=","[","1",",","2",",","3",",","4",",","5","]",",","index=","[","3","]",")",">",">",">","out","=","sl.run","(",")",">",">",">","out.outputs.out","4",">",">",">","_","=","sl.inputs.trait_set","(","inlist=","[","1",",","2",",","3",",","4",",","5","]",",","index=","[","3",",","4","]",")",">",">",">","out","=","sl.run","(",")",">",">",">","out.outputs.out","[","4",",","5","]"]
code: def _list_outputs(self):
      outputs = self._outputs().get()
      out = np.array(self.inputs.inlist, dtype=object)[
          np.array(self.inputs.index)
      ].tolist()
      outputs["out"] = out
      return outputs
  
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 for calling the Select obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs