def METHOD_NAME(self, source):
    """Convert a NiSourceTexture block, or simply a path string, to a Blender Texture object.
    :return Texture object
    """
    # if the source block is not linked then return None
    if not source:
        return None
    if isinstance(source, NifClasses.NiSourceTexture) and not source.use_external and NifOp.props.use_embedded_texture:
        return self.import_embedded_texture_source(source)
    else:
        return self.import_external_source(source)