code: def from_strings_to_ints(input, max_string_length):
      """
      Utility function used to transform string inputs into a numerical representation.
      """
      shape = list(input.shape)
      shape.append(max_string_length // 4)
      return (
          np.array(input, dtype="|S" + str(max_string_length))
          .view(np.int32)
          .reshape(shape)
      )
  
imports: from packaging.version import Version, parse
  from types import ModuleType
  import numpy
  import torch
  import os
  import warnings
  import shutil
  from hummingbird.ml.exceptions import ConstantError
label_desc: Use image node_id 23 for calling a global function with example usage: from_strings_to_ints(input, max_string_length) and returns: np