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 process_predict_dataset(
      self,
      dataset: InputBase,
      batch_size: int,
      num_workers: int = 0,
      pin_memory: bool = False,
      shuffle: bool = False,
      drop_last: bool = False,
      sampler: Optional[Sampler] = None,
      persistent_workers: bool = False,
      input_transform: Optional[InputTransform] = None,
      trainer: Optional["flash.Trainer"] = None,
  ) -> DataLoader:
      return self.adapter.process_predict_dataset(
          dataset,
          batch_size,
          num_workers=num_workers,
          pin_memory=pin_memory,
          shuffle=shuffle,
          drop_last=drop_last,
          sampler=sampler,
          persistent_workers=persistent_workers,
          input_transform=input_transform,
          trainer=trainer,
      )
  
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 18 for calling the AdapterTask obj's underlying member method code with example usage: obj.process_predict_dataset(dataset, batch_size, num_workers, pin_memory, shuffle, drop_last, sampler, persistent_workers, input_transform, trainer) and returns: self