parameters: (folder, ext)
return_statement: return files
docstring: Get files with given extension. This returns the files without
      sorting or the folder name prepended to them.
docstring_summary: Get files with given extension. This returns the files without
      sorting or the folder name prepended to them.
docstring_tokens: Get files with given extension . This returns the files without sorting or the folder name prepended to them .
function: def getByExtension(folder, ext):
      # TODO: This function should not be used as it is not robust.
      # Rather, look up the index, and read only files listed there.
      '''Get files with given extension. This returns the files without
      sorting or the folder name prepended to them.'''
      files = []
      for f in os.listdir(folder):
  
          curr_ext = os.path.splitext(f)[1]
          if ext != curr_ext:
              continue
          files.append(f)
          
      return files
function_tokens: def getByExtension ( folder , ext ) : # TODO: This function should not be used as it is not robust. # Rather, look up the index, and read only files listed there. files = [ ] for f in os . listdir ( folder ) : curr_ext = os . path . splitext ( f ) [ 1 ] if ext != curr_ext : continue files . append ( f ) return files