def METHOD_NAME():
    importset = ImportSet('''
        from a1.b1 import c1 as x
        from a2.b2 import c2 as x
        from a2.b2 import c2 as y
    ''')
    expected = {'x': (Import('from a1.b1 import c1 as x'),
                      Import('from a2.b2 import c2 as x')),
                'y': (Import('from a2.b2 import c2 as y'),)}
    assert importset.by_import_as == expected