code: def cdf_to_pdf(cdf):
      # Converts a CDF (discretized, or not) to a PDF
      pdf = jnp.diff(cdf)  # discrete differences
      return pdf / pdf.sum()
  
file_path: NeuralCompression/projects/jax_entropy_coders/test_entropy_coders.py
imports: import craystack
  import jax.numpy
  import jax_arithmetic_coder
  import numpy
  import pytest
  import scipy
label_desc: Use image node_id 2 for calling a global function with example usage: cdf_to_pdf(cdf) and returns: unknown