code: def barlow_twins_loss(
      lambda_: float = 0.0051,
      scale_loss: float = 0.024,
      latent_embedding_dim: int = 8192,
      **kwargs,
  ) -> ClassyLoss:
      loss_name = "barlow_twins_loss"
      cfg = AttrDict(
          {
              "lambda_": lambda_,
              "scale_loss": scale_loss,
              "embedding_dim": latent_embedding_dim,
          }
      )
  
      return get_loss_fn(loss_name, cfg)
  
file_path: lightning-flash/src/flash/image/embedding/losses/vissl_losses.py
imports: from typing import List, Union
  from torch import Tensor
  from flash.core.registry import FlashRegistry
  from flash.core.utilities.imports import _VISSL_AVAILABLE
label_desc: Use image node_id 4 for calling a global function with example usage: barlow_twins_loss(lambda_, scale_loss, latent_embedding_dim) and returns: get_loss_fn