code: def beta_pdf(x, a, b):
      return (
          x ** (a - 1)
          * (1 - x) ** (b - 1)
          * math.gamma(a + b)
          / (math.gamma(a) * math.gamma(b))
      )
  
file_path: matplotlib/galleries/examples/animation/bayes_update.py
imports: import math
  import matplotlib.pyplot
  import numpy
  from matplotlib.animation import FuncAnimation
label_desc: Use image node_id 1 for calling a global function with example usage: beta_pdf(x, a, b) and returns: unknown