<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_userid(self, side):
 """Return the userid for the specified bed side."""

        for user in self.users:
            obj = self.users[user]
            if obj.side == side:
                return user