class_docstr: The ``DefaultAdapter`` is an :class:`~flash.core.adapter.Adapter`.
class_docstr_tok: ["The","``","DefaultAdapter","``","is","an",":","class",":","`","~flash.core.adapter.Adapter","`","."]
code: def from_task(
      cls,
      task: AdapterTask,
      backbone: nn.Module,
      **kwargs,
  ) -> Adapter:
      adapter = cls(backbone)
      adapter.__dict__["_task"] = task
      return adapter
  
file_path: lightning-flash/src/flash/image/embedding/strategies/default.py
imports: import warnings
  from typing import Any, Optional
  from torch import nn
  from flash.core.adapter import Adapter, AdapterTask
  from flash.core.data.io.input import DataKeys
  from flash.core.model import Task
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.url_error import catch_url_error
label_desc: Use image node_id 2 for calling the DefaultAdapter obj's underlying member method code with example usage: obj.from_task(cls, task, backbone) and returns: adapter