code: def _get_num_pass(data, n):
      
      numpass = tz.get_in(["config", "algorithm", "ensemble", "numpass"], data)
      if numpass:
          return int(numpass)
      trusted_pct = tz.get_in(["config", "algorithm", "ensemble", "trusted_pct"], data)
      if trusted_pct:
          return int(math.ceil(float(trusted_pct) * n))
      return 2
docs: Calculate the number of samples needed to pass ensemble calling.