code: def convertTypeNameStrToCudfType(hiveType):
      if (
          hiveType == "int"
          or hiveType == "integer"
          or hiveType == "int32"
      ):
          return 3  # INT32
      elif (
          hiveType == "str"
          or hiveType == "string"
          or hiveType.startswith("varchar")
          or hiveType.startswith("char")
          or hiveType == "binary"
      ):
          return 23  # STRING
      elif hiveType == "tinyint" or hiveType == "int8":
          return 1  # INT8
      elif hiveType == "smallint" or hiveType == "int16":
          return 2  # INT16
      elif hiveType == "bigint" or hiveType == "int64":
          return 4  # INT64
      elif hiveType == "float" or hiveType == "float32":
          return 9  # FLOAT32
      elif (
          hiveType == "double"
          or hiveType == "double precision"
          or hiveType.startswith("decimal")
          or hiveType == "float64"
      ):
          return 10  # FLOAT64
      elif hiveType == "boolean":
          return 11  # BOOL8
      elif hiveType == "date":
          # return 8  # TIMESTAMP_DAYS
  
          # TIMESTAMP_MILLISECONDS will use ms here until
          # there is better support for days
          return 14
      elif hiveType == "timestamp[s]":
          return 13  # TIMESTAMP_SECONDS
      elif hiveType == "timestamp" or hiveType == "timestamp[ms]":
          return 14  # TIMESTAMP_MILLISECONDS
      elif hiveType == "timestamp[us]":
          return 15  # TIMESTAMP_MICROSECONDS
      elif hiveType == "timestamp[ns]":
          return 16  # TIMESTAMP_NANOSECONDS
      elif hiveType == "timedelta[D]":
          return 17  # DURATION_DAYS
      elif hiveType == "timedelta64[s]":
          return 18  # DURATION_SECONDS
      elif hiveType == "timedelta64[ms]":
          return 19  # DURATION_MILLISECONDS
      elif hiveType == "timedelta64[us]":
          return 20  # DURATION_MICROSECONDS
      elif hiveType == "timedelta" or hiveType == "timedelta64[ns]":
          return 21  # DURATION_NANOSECONDS
      elif hiveType == "decimal" or hiveType == "numeric":
          return None
      else:
          print(
              "ERROR: Data type "
              + str(hiveType)
              + " did not match any understood type"
          )
          return None
  
file_path: blazingsql/pyblazing/pyblazing/apiv2/hive.py
imports: from itertools import repeat
  import cudf
  from TCLIService.ttypes import TOperationState
label_desc: Use image node_id 1 for calling a global function with example usage: convertTypeNameStrToCudfType(hiveType) and returns: int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, None, None