code: def assign_prs(prs, categs: List[Dict[str, List[str]]]):  # noqa
      "Assign PR to categories based on labels"
      assigned = defaultdict(list)
  
      for i, pr in enumerate(prs):
          for cat in categs:
              pr_labels = [label["name"] for label in pr["labels"]]
              if not set(cat["labels"]).isdisjoint(set(pr_labels)):
                  assigned[cat["title"]].append(i)
  
      #             if any(l.startswith("module") for l in pr_labels):
      #                 print(i, pr_labels)
  
      assigned["Other"] = list(
          set(range(len(prs)))
          - {i for _, l in assigned.items() for i in l}
      )
  
      return assigned
  
file_path: sktime/build_tools/changelog.py
imports: import os
  from collections import defaultdict
  from typing import Dict, List
  import httpx
  from dateutil import parser
label_desc: Use image node_id 6 for calling a global function with example usage: assign_prs(prs, categs) and returns: assigned