docs: def local_regon_checksum(digits):
      """
      Calculates and returns a control digit for given list of digits basing on local REGON standard.
      """
      weights_for_check_digit = [2, 4, 8, 5, 0, 9, 7, 3, 6, 1, 2, 4, 8]
      check_digit = 0
  
      for i in range(0, 13):
          check_digit += weights_for_check_digit[i] * digits[i]
  
      check_digit %= 11
  
      if check_digit == 10:
          check_digit = 0
  
      return check_digit