code: def __call__(self, img, iter_i=None, raw_image=None):
      kind = np.random.choice(len(self.probas), p=self.probas)
      gen = self.gens[kind]
      result = gen(img, iter_i=iter_i, raw_image=raw_image)
      if self.invert_proba > 0 and random.random() < self.invert_proba:
          result = 1 - result
      return result, kind == (len(self.probas) - 1)
  
imports: import math
  import random
  import hashlib
  import logging
  from enum import Enum
  import cv2
  import numpy
label_desc: Use image node_id 2 for calling the MixedMaskGenerator obj's underlying member method code with example usage: obj.__call__(img, iter_i, raw_image) and returns: result,  unknown