def METHOD_NAME(self, request):
    # If the request is a format that only this plugin can handle,
    # we report that we can do it; a useful error will be raised
    # when simpleitk is not installed. For the more common formats
    # we only report that we can read if the library is installed.
    if request.extension in ITK_FORMATS:
        return True
    if has_module("itk.ImageIOBase") or has_module("SimpleITK"):
        return request.extension in ALL_FORMATS