code: def compute_ecdf(sample, z):
      """Compute ECDF.
  
      This function computes the ecdf value at the evaluation point
          or a sorted set of evaluation points.
      """
      return np.searchsorted(sample, z, side="right") / len(sample)
  
file_path: arviz/arviz/plots/ecdfplot.py
imports: import numpy
  from scipy.stats import uniform, binom
  from ..rcparams import rcParams
  from .plot_utils import get_plotting_function
label_desc: Use image node_id 2 for calling a global function with example usage: compute_ecdf(sample, z) and returns: unknown