code: def generate_choice_distribution(
      n: int = 1, probs: Optional[np.ndarray] = None, size: int = 1
  ) -> np.ndarray:
      """Generates a random choice distribution based on probabilities.
  
      Args:
          n: Amount of values to be picked from.
          probs: Array of probabilities.
          size: Size of array.
  
      Returns:
          (np.ndarray): Choice distribution array.
  
      """
  
      choice_array = np.random.choice(n, size, p=probs, replace=False)
  
      return choice_array
  
imports: from math import gamma, pi, sin
  from typing import Optional
  import numpy
  import opytimizer.math.random
label_desc: Use image node_id 2 for calling a global function with example usage: generate_choice_distribution(n, probs, size) and returns: choice_array