code: def test_freedman_diaconis_bins():
      a1 = np.arange(1, 98, dtype=float)
      a2 = np.arange(100, dtype=float)
      a2[[0, 99]] = np.nan
      iqr1 = freedman_diaconis_bins(a1)
      iqr2 = freedman_diaconis_bins(a2)
      assert iqr1 == iqr2
  
file_path: plotnine/tests/test_geom_bar_col_histogram.py
imports: import numpy
  import pandas
  from plotnine import aes, after_stat, geom_bar, geom_col, geom_histogram, geom_text, ggplot, scale_x_sqrt
  from plotnine.stats.binning import freedman_diaconis_bins
  from .conftest import layer_data
label_desc: Use image node_id 7 for calling a global function with example usage: test_freedman_diaconis_bins() without return types