class CheckerContext:
    ir_version: int = ...
    opset_imports: dict[str, int] = ...

class LexicalScopeContext:
    ir_version: int = ...
    opset_imports: dict[str, int] = ...

class ValidationError(Exception): ...

def check_value_info(bytes: bytes, checker_context: CheckerContext) -> None: ...  # noqa: A002
def check_tensor(bytes: bytes, checker_context: CheckerContext) -> None: ...  # noqa: A002
def check_sparse_tensor(bytes: bytes, checker_context: CheckerContext) -> None: ...  # noqa: A002
def check_attribute(
    bytes: bytes,  # noqa: A002
    checker_context: CheckerContext,
    lexical_scope_context: LexicalScopeContext,
) -> None: ...
def check_node(
    bytes: bytes,  # noqa: A002
    checker_context: CheckerContext,
    lexical_scope_context: LexicalScopeContext,
) -> None: ...
def check_function(
    bytes: bytes,  # noqa: A002
    checker_context: CheckerContext,
    lexical_scope_context: LexicalScopeContext,
) -> None: ...
def check_graph(
    bytes: bytes,  # noqa: A002
    checker_context: CheckerContext,
    lexical_scope_context: LexicalScopeContext,
) -> None: ...
def check_model(
    bytes: bytes,  # noqa: A002
    full_check: bool,
    skip_opset_compatibility_check: bool,
    check_custom_domain: bool,
) -> None: ...
def check_model_path(
    path: str,
    full_check: bool,
    skip_opset_compatibility_check: bool,
    check_custom_domain: bool,
) -> None: ...
def _open_external_data(
    base_dir: str, location: str, tensor_name: str, read_only: bool
) -> int: ...
