code: def convert_int(value: int | str) -> int:
      """Convert a string to an integer."""
      return int(value)
  
imports: from __future__ import annotations
  import logging
  import os
  from os.path import join
  from pathlib import Path
  from typing import TYPE_CHECKING, Any, Callable, Generic, Literal, Sequence, TypeVar, Union, cast
  import yaml
  from .util.deprecation import deprecated
  from .util.paths import bokehjs_path, server_path
label_desc: Use image node_id 2 for calling a global function with example usage: convert_int(value) and returns: int