code: def pdf(self, x, method="binom"):
      # TODO: check usage of k_grid_product. Should this go into eval?
      pdf_ = self.k_grid_product * _eval_bernstein_1d(
          x, self.prob_grid, method=method
      )
      return pdf_
  
file_path: statsmodels/statsmodels/distributions/bernstein.py
imports: import numpy
  from scipy import stats
  from statsmodels.tools.decorators import cache_readonly
  from statsmodels.distributions.tools import _Grid, cdf2prob_grid, prob2cdf_grid, _eval_bernstein_dd, _eval_bernstein_2d, _eval_bernstein_1d
label_desc: Use image node_id 2 for calling the BernsteinDistributionUV obj's underlying member method code with example usage: obj.pdf(x, method) and returns: pdf_