def METHOD_NAME(
        node: ast.AST,
        from_imports: dict[str, set[str]],
) -> Iterable[tuple[Offset, TokenFunc]]:
    offset_name = _is_oserror_alias(node, from_imports)
    if offset_name is not None:
        offset, name = offset_name
        func = functools.partial(replace_name, name=name, new='OSError')
        yield offset, func