code: def _degree_distribution(graph, bin_width=1, *args, **kwds):
      """Calculates the degree distribution of the graph.
  
      Unknown keyword arguments are directly passed to L{GraphBase.degree}.
  
      @param bin_width: the bin width of the histogram
      @return: a histogram representing the degree distribution of the
        graph.
      """
      result = Histogram(bin_width, graph.degree(*args, **kwds))
      return result
  
imports: from igraph._igraph import IN, OUT, arpack_options
  from igraph.statistics import Histogram
  from igraph.utils import deprecated
label_desc: Use image node_id 3 for calling a global function with example usage: _degree_distribution(graph, bin_width) and returns: result