code: def __init__(
      self,
      *args,
      loss_fn: Optional[Callable] = None,
      metrics: Union[
          torchmetrics.Metric, Mapping, Sequence, None
      ] = None,
      **kwargs,
  ) -> None:
      metrics, loss_fn = RegressionMixin._build(loss_fn, metrics)
  
      super().__init__(
          *args,
          loss_fn=loss_fn,
          metrics=metrics,
          **kwargs,
      )
  
file_path: lightning-flash/src/flash/core/regression.py
imports: from typing import Callable, Mapping, Optional, Sequence, Union
  import torch.nn.functional
  import torchmetrics
  from torch import Tensor
  from flash.core.adapter import AdapterTask
  from flash.core.model import Task
label_desc: Use image node_id 1 to create a new RegressionAdapterTask object from inherited base classes: AdapterTask, RegressionMixin with example: obj = RegressionAdapterTask()