code: def _split_into(n: int, type: str, value: str) -> list[str]:
      """Split an index entry into a given number of parts at semicolons."""
      parts = [x.strip() for x in value.split(";", n - 1)]
      if len(list(filter(None, parts))) < n:
          msg = f"invalid {type} index entry {value!r}"
          raise ValueError(msg)
      return parts
  
label_desc: Use image node_id 2 for calling a global function with example usage: _split_into(n, type, value) and returns: parts