<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process_lsof(self, users, types):
 """ Get the list of users and file types to collect for and collect the data from lsof """

        d = {}
        for u in users:
            d[u] = {}
            tmp = os.popen("lsof -wbu %s | awk '{ print $5 }'" % (
                u)).read().split()
            for t in types:
                d[u][t] = tmp.count(t)
        return d