def METHOD_NAME(filter, fileName):
    caster = itk.RescaleIntensityImageFilter[
        InternalImageType, OutputImageType
    ].New(filter, OutputMinimum=0, OutputMaximum=255)
    itk.imwrite(caster, os.path.join(outputDirectory, fileName))