code: def check_loss_support(cls, loss_name):
      if loss_name not in cls.supported_losses():
          raise Exception(
              f"CrossBatchMemory not supported for {loss_name}"
          )
  
file_path: pytorch-metric-learning/src/pytorch_metric_learning/losses/cross_batch_memory.py
imports: import torch
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
  from ..utils.module_with_records import ModuleWithRecords
  from .base_loss_wrapper import BaseLossWrapper
label_desc: Use image node_id 3 for calling the CrossBatchMemory obj's underlying member method code with example usage: obj.check_loss_support(cls, loss_name) without return types