code: def list_files(
      dir_path=theano.__path__[0], pattern="*.py", no_match=".#"
  ):
      """
      List all files under theano's path.
      """
      files_list = []
      for dir, _, files in os.walk(dir_path):
          for f in files:
              if fnmatch(f, pattern):
                  path = os.path.join(dir, f)
                  if not f.startswith(no_match):
                      files_list.append(path)
      return files_list
  
file_path: Theano/theano/tests/test_flake8.py
imports: from __future__ import absolute_import, print_function, division
  from nose.plugins.skip import SkipTest
  import os
  import sys
  from fnmatch import fnmatch
  import theano
label_desc: Use image node_id 1 for calling a global function with example usage: list_files(dir_path, pattern, no_match) and returns: files_list