class_docstr: Output layer for pair (two-tower) regression models. Accepts two embedding tensors,
  and computes cosine similarity. The loss is between regression label and cosine
  similarity.
code: def from_config(cls, config: Config, **kwargs):
      return cls(create_loss(config.loss))
  
imports: from typing import Any, Dict, List, Optional, Tuple, Union
  import torch
  from pytext.config.component import create_loss
  from pytext.loss import MAELoss, MSELoss
  from pytext.utils.usage import log_class_usage
  from .output_layer_base import OutputLayerBase
label_desc: Use image node_id 1 for calling the PairwiseCosineRegressionOutputLayer obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls