code: def ecdf(x):
      # https://community.plot.ly/t/plot-the-empirical-cdf/29045
      x = np.sort(x)
  
      def result(v):
          return np.searchsorted(x, v, side="right") / x.size
  
      return result
  
imports: import numpy
  import pandas
  import plotly.graph_objects
label_desc: Use image node_id 1 for calling a global function with example usage: ecdf(x) and returns: result, unknown