class_docstr: wandb class for histograms.
  
  This object works just like numpy's histogram function
  https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html
  
  Examples:
      Generate histogram from a sequence
      ```python
      wandb.Histogram([1, 2, 3])
      ```
  
      Efficiently initialize from np.histogram.
      ```python
      hist = np.histogram(data)
      wandb.Histogram(np_histogram=hist)
      ```
  
  Arguments:
      sequence: (array_like) input data for histogram
      np_histogram: (numpy histogram) alternative input of a precomputed histogram
      num_bins: (int) Number of bins for the histogram.  The default number of bins
          is 64.  The maximum number of bins is 512
  
  Attributes:
      bins: ([float]) edges of bins
      histogram: ([int]) number of elements falling in each bin
code: def to_json(
      self, run: Optional[Union["LocalRun", "Artifact"]] = None
  ) -> dict:
      return {
          "_type": self._log_type,
          "values": self.histogram,
          "bins": self.bins,
      }
  
file_path: wandb/wandb/sdk/data_types/histogram.py
imports: import sys
  from typing import TYPE_CHECKING, Optional, Sequence, Tuple, Union
  from wandb import util
  from .base_types.wb_value import WBValue
label_desc: Use image node_id 2 for calling the Histogram obj's underlying member method code with example usage: obj.to_json(run) and returns: dict