<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def host2id(self, hostname):
 """return member id by hostname"""

        for key, value in self.server_map.items():
            if value == hostname:
                return key