def load(self):

        if self.filename is not None:
            image = self.resource_factory.image_from_file(self.filename)

        elif self.data is not None:
            image = self.resource_factory.image_from_data(self.data)

        else:
            raise ValueError("Image reference has no filename OR data")

        return image

#### EOF ######################################################################
Return all the distribution names known to this locator.
dataset/ETHPy150Open enthought/pyface/pyface/resource/resource_reference.py/ImageReference.load--crossover with--dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/site-packages/pip/_vendor/distlib/locators.py/Locator.get_distribution_names