code: def is_multi_task_module(model: nn.Module) -> bool:
      return isinstance(model, MultiTaskModule) or (
          isinstance(model, DistributedDataParallel)
          and isinstance(model.module, MultiTaskModule)
      )
  
imports: from avalanche.benchmarks.utils import _make_taskaware_classification_dataset
  from avalanche.models.dynamic_modules import MultiTaskModule, DynamicModule
  import torch.nn
  from torch.nn.parallel import DistributedDataParallel
  from collections import OrderedDict
  from avalanche.benchmarks.scenarios import CLExperience
label_desc: Use image node_id 1 for calling a global function with example usage: is_multi_task_module(model) and returns: unknown