class_docstr: Template for categorizing.
class_docstr_tok: ["Template","for","categorizing","."]
code: def exec(self, data: List):
      if self.category_fn is None:
          raise NotImplementedError
      res = {}
      for d in data:
          k = self.category_fn(d)
          if k is None:
              continue
          if k not in res:
              res[k] = []
          res[k].append(d)
      return res
  
imports: import argparse
  import glob
  import json
  import os
  import re
  from typing import Callable, List
  from linguistic_tree import LanguageTree
  from espnet2.utils.types import str2bool
label_desc: Use image node_id 3 for calling the Categorizer obj's underlying member method code with example usage: obj.exec(data) and returns: res