<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getMetadata(self, remote, address, key):
 """Get metadata of device"""

        if self._server is not None:
            # pylint: disable=E1121
            return self._server.getAllMetadata(remote, address, key)