code: def base_to_int(str_to_convert, base):
      """
      Note : You can use int() built-in function instead of this.
      :type str_to_convert: str
      :type base: int
      :rtype: int
      """
  
      digit = {}
      for ind, char in enumerate(
          string.digits + string.ascii_uppercase
      ):
          digit[char] = ind
      multiplier = 1
      res = 0
      for char in str_to_convert[::-1]:
          res += digit[char] * multiplier
          multiplier *= base
      return res
  
label_desc: Use image node_id 2 for calling a global function with example usage: base_to_int(str_to_convert, base) and returns: res