code: def bin_edges_from_bin_centers(bin_centers: np.ndarray):
      lower_edge = -np.inf
      upper_edge = np.inf
      bin_edges = np.concatenate(
          [
              [lower_edge],
              (bin_centers[1:] + bin_centers[:-1]) / 2.0,
              [upper_edge],
          ]
      )
      return bin_edges
  
file_path: gluonts/src/gluonts/mx/representation/binning_helpers.py
imports: import mxnet
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: bin_edges_from_bin_centers(bin_centers) and returns: bin_edges