def METHOD_NAME(self, hist: np.ndarray, bin_edges: np.ndarray):
    bin_count = len(hist)
    if 1 > bin_count > 512:
        raise ValueError("Supported range for `bin_count` is [1, 512].")
    self.storage['data'] = BLOB(data=hist.tobytes())
    self.storage['dtype'] = str(hist.dtype)
    self.storage['range'] = [bin_edges[0].item(), bin_edges[-1].item()]
    self.storage['bin_count'] = bin_count