code: def default(
      head: Optional[str] = None,
      loss_fn: Optional[str] = None,
      **kwargs,
  ):
      """Return `(None, None, [])` as loss function, head and hooks.
  
      Because default strategy only support prediction.
  
      """
      if head is not None:
          warnings.warn(
              f"default strategy has no heads. So given head({head}) is ignored."
          )
  
      if loss_fn is not None:
          warnings.warn(
              f"default strategy has no loss functions. So given loss_fn({loss_fn}) is ignored."
          )
  
      return None, None, []
  
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 1 for calling a global function with example usage: default(head, loss_fn) and returns: None,  None,  list