code: def drop_connect(x, drop_ratio):
      """Drop connect (adapted from DARTS)."""
      keep_ratio = 1.0 - drop_ratio
      mask = torch.empty(
          [x.shape[0], 1, 1, 1], dtype=x.dtype, device=x.device
      )
      mask.bernoulli_(keep_ratio)
      x.div_(keep_ratio)
      x.mul_(mask)
      return x
  
imports: import numpy
  import torch
  import torch.nn
  from pycls.core.config import cfg
  from torch.nn import Module
label_desc: Use image node_id 18 for calling a global function with example usage: drop_connect(x, drop_ratio) and returns: x