def import_versioned_module(version, submodule=None):
    module = 'ironic.common.glance_service.v%s' % version
    if submodule:
        module = '.'.join((module, submodule))
    return importutils.try_import(module)
dataset/ETHPy150Open openstack/ironic/ironic/common/image_service.py/import_versioned_module/original