<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_member_device(self, device):
 """Returns the given virtual media device object. :param device: virtual media device to be queried :returns virtual media device object. """

        for vmedia_device in self.get_members():
            if device in vmedia_device.media_types:
                return vmedia_device