<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def grep_file(query, item):
 """This function performs the actual grep on a given file."""

    return ['%s: %s' % (item, line) for line in open(item)
            if re.search(query, line)]