(self, image_id)
return self._image_from_metadata(metadata)
TODO: Docstring for image_with_id

        @param image_id TODO 

        @return TODO
TODO: Docstring for image_with_id
TODO : Docstring for image_with_id
def image_with_id(self, image_id):
        """
        TODO: Docstring for image_with_id

        @param image_id TODO 

        @return TODO
        """
        try:
            metadata = self._from_mongo_meta(self.collection.find_one( { "_id": image_id } ))
        except Exception as e:
            self.log.debug('Exception caught: %s' % e)
            return None

        if not metadata:
            raise ImageFactoryException("Unable to retrieve object metadata in Mongo for ID (%s)" % (image_id))

        return self._image_from_metadata(metadata)
def image_with_id ( self , image_id ) : try : metadata = self . _from_mongo_meta ( self . collection . find_one ( { "_id" : image_id } ) ) except Exception as e : self . log . debug ( 'Exception caught: %s' % e ) return None if not metadata : raise ImageFactoryException ( "Unable to retrieve object metadata in Mongo for ID (%s)" % ( image_id ) ) return self . _image_from_metadata ( metadata )