code: def get_data_per_category(data, categories):
      data_per_category = {category: [] for category in categories}
      for item in data:
          category = item["category"]
          if category in categories:
              data_per_category[category].append(item)
  
      return data_per_category
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_data_per_category(data, categories) and returns: data_per_category