code: def filterHivePartitionsWithUserPartitions(
      hive_partitions, user_partitions
  ):
      new_hive_partitions = {}
      for user_partition in user_partitions:
          user_partition_values_str = [
              str(val) for val in user_partitions[user_partition]
          ]
          for hive_partition in hive_partitions:
              for col_tuple in hive_partitions[hive_partition]:
                  if col_tuple[0] == user_partition:
                      if col_tuple[1] in user_partition_values_str:
                          new_hive_partitions[
                              hive_partition
                          ] = hive_partitions[hive_partition]
                          break
          hive_partitions = new_hive_partitions
          new_hive_partitions = {}
      return hive_partitions
  
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 3 for calling a global function with example usage: filterHivePartitionsWithUserPartitions(hive_partitions, user_partitions) and returns: hive_partitions