code: def gather_enqueue_mask(enqueue_mask, device):
      if enqueue_mask is None:
          return enqueue_mask
      enqueue_mask = c_f.to_device(enqueue_mask, device=device)
      return torch.cat([enqueue_mask, all_gather(enqueue_mask)], dim=0)
  
imports: import torch
  from ..losses import BaseMetricLossFunction, CrossBatchMemory
  from ..miners import BaseMiner
  from ..utils import common_functions
  from ..utils import loss_and_miner_utils
label_desc: Use image node_id 7 for calling a global function with example usage: gather_enqueue_mask(enqueue_mask, device) and returns: torch, enqueue_mask