def METHOD_NAME(path):
    """Get icon for file by extension."""
    if sys.platform == 'darwin':
        scale_factor = 0.9
    elif os.name == 'nt':
        scale_factor = 0.8
    else:
        scale_factor = 0.6
    return ima.get_icon_by_extension_or_type(path, scale_factor)