class_docstr: Implements a user friendly traits that accepts one or more
  paths to files or directories. This is the output version which
  return a single string whenever possible (when it was set to a
  single value or a list of length 1). Default value of this trait
  is _Undefined. It does not accept empty lists.
  
  XXX This should only be used as a final resort. We should stick to
  established Traits to the extent possible.
  
  XXX This needs to be vetted by somebody who understands traits
  
  >>> from nipype.interfaces.base import OutputMultiObject, TraitedSpec
  >>> class A(TraitedSpec):
  ...     foo = OutputMultiObject(File(exists=False))
  >>> a = A()
  >>> a.foo
  <undefined>
  
  >>> a.foo = '/software/temp/foo.txt'
  >>> a.foo
  '/software/temp/foo.txt'
  
  >>> a.foo = ['/software/temp/foo.txt']
  >>> a.foo
  '/software/temp/foo.txt'
  
  >>> a.foo = ['/software/temp/foo.txt', '/software/temp/goo.txt']
  >>> a.foo
  ['/software/temp/foo.txt', '/software/temp/goo.txt']
class_docstr_tok: ["Implements","a","user","friendly","traits","that","accepts","one","or","more","paths","to","files","or","directories",".","This","is","the","output","version","which","return","a","single","string","whenever","possible","(","when","it","was","set","to","a","single","value","or","a","list","of","length","1",")",".","Default","value","of","this","trait","is","_Undefined",".","It","does","not","accept","empty","lists",".","XXX","This","should","only","be","used","as","a","final","resort",".","We","should","stick","to","established","Traits","to","the","extent","possible",".","XXX","This","needs","to","be","vetted","by","somebody","who","understands","traits",">",">",">","from","nipype.interfaces.base","import","OutputMultiObject",",","TraitedSpec",">",">",">","class","A","(","TraitedSpec",")",":","...","foo","=","OutputMultiObject","(","File","(","exists=False",")",")",">",">",">","a","=","A","(",")",">",">",">","a.foo","<","undefined",">",">",">",">","a.foo","=","'\/software\/temp\/foo.txt'",">",">",">","a.foo","'\/software\/temp\/foo.txt'",">",">",">","a.foo","=","[","'\/software\/temp\/foo.txt","'","]",">",">",">","a.foo","'\/software\/temp\/foo.txt'",">",">",">","a.foo","=","[","'\/software\/temp\/foo.txt","'",",","'\/software\/temp\/goo.txt","'","]",">",">",">","a.foo","[","'\/software\/temp\/foo.txt","'",",","'\/software\/temp\/goo.txt","'","]"]
code: def set(self, objekt, name, value):
      self.set_value(objekt, name, value)
  
imports: from collections.abc import Sequence
  from traits import __version__
  import traits.api
  from traits.api import TraitType, Unicode
  from traits.trait_base import _Undefined
  from pathlib import Path
  from ...utils.filemanip import path_resolve
label_desc: Use image node_id 2 for calling the OutputMultiObject obj's underlying member method code with example usage: obj.set(objekt, name, value) without return types