code: def create_projected_itemsets(
      item: list, itemsets: np.array
  ) -> np.array:
      """
      Creates the projected itemsets for the given item. (For more info, see
      https://rasbt.github.io/mlxtend/user_guide/frequent_patterns/hmine/)
  
      Args:
          item (list): list of items
          itemsets (np.array): matrix of bools or binary
  
      Returns:
          projected_itemsets(np.array): projected itemsets for the given item
      """
  
      indices = np.nonzero(
          np.sum(itemsets[:, item], axis=1) == len(item)
      )[0]
      projected_itemsets = itemsets[indices, :]
      return projected_itemsets
  
imports: import math
  import numpy
  import pandas
  from ..frequent_patterns import fpcommon
label_desc: Use image node_id 4 for calling a global function with example usage: create_projected_itemsets(item, itemsets) and returns: projected_itemsets