def read_file(filename):
    """ return the contents of the file named filename or None if file not found """
    if os.path.isfile(filename):
        with open(filename, 'r') as f:
            return f.read()
 return the contents of the file named filename or None if file not found 
analyze/convnexts4nd/extensions/kernels/tuner.py