<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def runfile(fd, argv, fd_name='<unknown>', compile_flags=0, dont_inherit=1, filename=None, threads=True, verbose=False):
 """ Run code from given file descriptor with profiling enabled. Closes fd before executing contained code. """

    _run(threads, verbose, 'runfile', filename, fd, argv, fd_name,
        compile_flags, dont_inherit)