code: def get_symbol_id(
      state: parse_state, src: const_char_p, len: int
  ) -> int:
      next_id = state.symbol_ids.size()  # type: int
      result = state.symbol_ids.insert(std.string(src, len), next_id)
      return result[0].second
  
imports: from pathlib import Path
  import sys
  from ctypes import *
  from enum import Enum
  from itertools import islice
  from typing import Any, Callable, Dict, Generic, List, Optional, OrderedDict, TextIO, Tuple, TypeVar, Union, overload
  import llama_cpp.llama_cpp
  import json
  import re
  from typing import List, Optional
label_desc: Use image node_id 1 for calling a global function with example usage: get_symbol_id(state, src, len) and returns: result