code: def kernel_pdf_beta(x, sample, bw):
      # Beta kernel for density, pdf, estimation
      return stats.beta.pdf(sample, x / bw + 1, (1 - x) / bw + 1)
  
imports: import numpy
  from scipy import special, stats
label_desc: Use image node_id 3 for calling a global function with example usage: kernel_pdf_beta(x, sample, bw) and returns: stats