code: def generate_integer_random_number(
      low: int = 0,
      high: int = 1,
      exclude_value: int = None,
      size: int = None,
  ) -> np.ndarray:
      """Generates a random number or array based on an integer distribution.
  
      Args:
          low: Lower interval.
          high: Higher interval.
          exclude_value: Value to be excluded from array.
          size: Size of array.
  
      Returns:
          (np.ndarray): An integer random number or array.
  
      """
  
      integer_array = np.random.randint(low, high, size)
  
      if exclude_value is not None:
          bool_array = integer_array == exclude_value
  
          if np.any(bool_array):
              return generate_integer_random_number(
                  low, high, exclude_value, size
              )
  
      return integer_array
  
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: generate_integer_random_number(low, high, exclude_value, size) and returns: integer_array, generate_integer_random_number