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