class_docstr: The ``AdapterTask`` is a :class:`~flash.core.model.Task` which wraps an :class:`~flash.core.adapter.Adapter` and
  forwards all of the hooks.
  
  Args:
      adapter: The :class:`~flash.core.adapter.Adapter` to wrap.
      kwargs: Keyword arguments to be passed to the base :class:`~flash.core.model.Task`.
class_docstr_tok: ["The","``","AdapterTask","``","is","a",":","class",":","`","~flash.core.model.Task","`","which","wraps","an",":","class",":","`","~flash.core.adapter.Adapter","`","and","forwards","all","of","the","hooks",".","Args",":","adapter",":","The",":","class",":","`","~flash.core.adapter.Adapter","`","to","wrap",".","kwargs",":","Keyword","arguments","to","be","passed","to","the","base",":","class",":","`","~flash.core.model.Task","`","."]
code: def collate_fn(self) -> Optional[Callable]:
      return self.adapter.collate_fn
  
imports: from abc import abstractmethod
  from typing import Any, Callable, Optional
  import torch.jit
  from torch import Tensor, nn
  from torch.utils.data import DataLoader, Sampler
  import flash
  from flash.core.data.io.input import InputBase
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.model import DatasetProcessor, ModuleWrapperBase, Task
  from flash.core.utilities.types import INPUT_TRANSFORM_TYPE
label_desc: Use image node_id 4 for calling the AdapterTask obj's underlying member method code with example usage: obj.collate_fn() and returns: self