def resolve_import(import_path, from_module):
    if not import_path or not import_path.startswith('.'):
        return import_path

    from_module = from_module.split('.')
    dots = 0
    for c in import_path:
        if c == '.':
            dots += 1
        else:
            break

    if dots:
        from_module = from_module[:-dots]
        import_path = import_path[dots:]

    if import_path:
        from_module.append(import_path)

    return '.'.join(from_module)
Checks if the current selection is valid, and updates the selection
dataset/ETHPy150Open tweekmonster/moult/moult/utils.py/resolve_import--crossover with--dataset/ETHPy150Open rwl/muntjac/muntjac/ui/tab_sheet.py/TabSheet.updateSelection