def query_users_from_emails(self, emails):
        """Return a list of username strings based on the provided emails.

        If an email does not correspond to a username then None is inserted in
        its place.

        :emails: a list of strings corresponding to user email addresses
        :returns: a list of strings corresponding to Phabricator usernames

        """
        usernames = []
        for e in emails:
            next_username = None
            for u in self._data.users:
                if u.email == e:
                    next_username = u.username
            usernames.append(next_username)
        return usernames
dataset/ETHPy150Open bloomberg/phabricator-tools/py/abd/abdt_conduitmock.py/ConduitMock.query_users_from_emails/original