def get_metadata(self):
        """
        Convert dictionary returned after podman inspect command into instance of ContainerMetadata class
        :return: ContainerMetadata, container metadata instance
        """
        if self._metadata is None:
            self._metadata = ContainerMetadata()
        inspect_to_container_metadata(self._metadata, self.inspect(refresh=True), self.image)
        return self._metadata
def get_metadata ( self ) : if self . _metadata is None : self . _metadata = ContainerMetadata ( ) inspect_to_container_metadata ( self . _metadata , self . inspect ( refresh = True ) , self . image ) return self . _metadata
Convert dictionary returned after podman inspect command into instance of ContainerMetadata class
        :return: ContainerMetadata, container metadata instance