def inspect(self, refresh=True):
        """
        return cached metadata by default

        :param refresh: bool, returns up to date metadata if set to True
        :return: dict
        """
        if refresh or not self._inspect_data:
            ident = self._id or self.name
            if not ident:
                raise ConuException("This container does not have a valid identifier.")
            self._inspect_data = self.d.inspect_container(ident)
        return self._inspect_data
def inspect ( self , refresh = True ) : if refresh or not self . _inspect_data : ident = self . _id or self . name if not ident : raise ConuException ( "This container does not have a valid identifier." ) self . _inspect_data = self . d . inspect_container ( ident ) return self . _inspect_data
return cached metadata by default

        :param refresh: bool, returns up to date metadata if set to True
        :return: dict