code: def _mixup_inputs(x, state):
      index = state[torchbearer.MIXUP_PERMUTATION]
      lam = state[torchbearer.MIXUP_LAMBDA]
      mixed_x = lam * x + (1 - lam) * x[index, :]
      return mixed_x
  
imports: from torchbearer import Callback
  import torchbearer
  from torch.distributions.beta import Beta
  import random
  import torch
  import types
  from torchbearer import cite
label_desc: Use image node_id 2 for calling a global function with example usage: _mixup_inputs(x, state) and returns: mixed_x