def write_component(version, source):
    with open(ICONSET_OUTPUT, 'w') as outp:
        print('Writing icons to', ICONSET_OUTPUT)
        outp.write(source)

    with open(VERSION_OUTPUT, 'w') as outp:
        print('Generating version file', VERSION_OUTPUT)
        outp.write(
            '"""DO NOT MODIFY. Auto-generated by update_mdi script."""\n')
        outp.write('VERSION = "{}"\n'.format(version))
Convert a range string into a tuple of boundaries:
dataset/ETHPy150Open home-assistant/home-assistant/script/update_mdi.py/write_component--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/openpyxl-2.3.0-b2/openpyxl/utils/__init__.py/range_boundaries