code: def export_to_openvino(
      export_path: str | Path,
      onnx_path: Path,
      metadata: dict[str, Any],
      input_size: tuple[int, int],
  ) -> None:
      """Convert onnx model to OpenVINO IR.
  
      Args:
          export_path (str | Path): Path to the root folder of the exported model.
          onnx_path (Path): Path to the exported onnx model.
          metadata (dict[str, Any]): Metadata for the exported model.
          input_size (tuple[int, int]): Input size of the model. Used for adding metadata to the IR.
      """
      optimize_command = [
          "mo",
          "--input_model",
          str(onnx_path),
          "--output_dir",
          str(export_path),
      ]
      subprocess.run(optimize_command, check=True)  # nosec
      _add_metadata_to_ir(
          str(export_path) + f"/{onnx_path.with_suffix('.xml').name}",
          metadata,
          input_size,
      )
  
imports: from __future__ import annotations
  import json
  import logging
  import subprocess
  from enum import Enum
  from importlib.util import find_spec
  from pathlib import Path
  from typing import Any
  from warnings import warn
  import numpy
  import torch
  from torch import Tensor
  from torch.types import Number
  from anomalib.data.task_type import TaskType
  from anomalib.models.components import AnomalyModule
label_desc: Use image node_id 6 for calling a global function with example usage: export_to_openvino(export_path, onnx_path, metadata, input_size) without return types