code: def char_offset_to_byte_offset(text: str, char_offset: int) -> int:
      """
      Convert a char offset to byte offset
      """
      return byte_length(text[:char_offset])
  
imports: import builtins
  import json
  import os
  import unicodedata
  from typing import Any, List, Optional, Tuple
label_desc: Use image node_id 5 for calling a global function with example usage: char_offset_to_byte_offset(text, char_offset) and returns: byte_length