code: def search_files(prefix, outtypes):
      return it.chain.from_iterable(
          iglob(glob.escape(prefix + outtype)) for outtype in outtypes
      )
  
imports: import os
  import re
  from copy import deepcopy
  import itertools
  import glob
  from glob import iglob
  from ..utils.filemanip import split_filename
  from .base import CommandLine, CommandLineInputSpec, InputMultiPath, traits, TraitedSpec, OutputMultiPath, isdefined, File, Directory, PackageInfo
label_desc: Use image node_id 1 for calling a global function with example usage: search_files(prefix, outtypes) and returns: it