code: def qbeta(p, shape1, shape2, lower_tail=True):
      if lower_tail is False:
          p = 1 - p
      return beta.ppf(q=p, a=shape1, b=shape2, loc=0, scale=1)
  
file_path: scattertext/scattertext/termscoring/lrc.py
imports: from typing import Union
  import numpy
  import pandas
  from scipy.stats import beta
  from scattertext import CorpusBasedTermScorer
label_desc: Use image node_id 6 for calling a global function with example usage: qbeta(p, shape1, shape2, lower_tail) and returns: beta