def METHOD_NAME(diif_ref, branch):
    for tname, ext_path in diif_ref:
        ext_name = ext_path.split('/')[-1]
        logger.info(f'installing extension: {ext_name}')
        cmd = ['azdev', 'extension', 'add', ext_name]
        logger.info(f'cmd: {cmd}')
        out = run(cmd, capture_output=True, text=True)
        if out.returncode and branch == 'base' and 'ERROR: extension(s) not found' in out.stderr:
            print(f"{cmd} failed, extesion {ext_name} is not exist on base branch, skip it.")
            sys.exit(0)
        elif out.returncode:
            raise RuntimeError(f"{cmd} failed")