::
        
            GET /:login/machines/:id/metadata
        
        :Returns: machine metadata
        :rtype: :py:class:`dict`
        
        Fetch and return the metadata dict for the machine. The method 
        refreshes the locally cached copy of the metadata kept in the 
        :py:attr:`metadata` attribute and returns it.

def get_metadata(self):
        """
        ::
        
            GET /:login/machines/:id/metadata
        
        :Returns: machine metadata
        :rtype: :py:class:`dict`
        
        Fetch and return the metadata dict for the machine. The method 
        refreshes the locally cached copy of the metadata kept in the 
        :py:attr:`metadata` attribute and returns it.
        """
        j, _ = self.datacenter.request('GET', self.path + '/metadata')
        self.metadata = j
        return j