code: def convertHiveToCudf(cursor, query):
      df = cudf.DataFrame()
      result, description = runHiveQuery(cursor, query)
      arrays = [[] for i in repeat(None, len(result[0]))]
      for row in result:
          i = 0
          for val in row:
              arrays[i].append(val)
              i = i + 1
      i = 0
      while i < len(result[0]):
          column = cudf.Series(arrays[i])
          df[description[i][0].split(".")[1]] = column
          i = i + 1
      return df
  
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 9 for calling a global function with example usage: convertHiveToCudf(cursor, query) and returns: df