code: def get_max_num_classes(self):
      
      num = 0
      for task in self.task_list:
        if hasattr(task, "num_classes"):
          if num < task.num_classes:
            num = task.num_classes
  
      return num
docs: Compute the maximum number of classes any subtask has.
  
      This is useful for modifying the size of the softmax to include the output
      labels for the classification tasks. Currently, labels from different tasks
      are overloaded.
  
      Returns:
        num: Highest number of output classes in any text classification sub-task
          within this MultiProblem.