code: def test_1d_range_keyword(self):
      # Regression test for gh-3063, range can be (min, max) or [(min, max)]
      np.random.seed(9865)
      x = np.arange(30)
      data = np.random.random(30)
  
      mean, bins, _ = binned_statistic(x[:15], data[:15])
      mean_range, bins_range, _ = binned_statistic(
          x, data, range=[(0, 14)]
      )
      mean_range2, bins_range2, _ = binned_statistic(
          x, data, range=(0, 14)
      )
  
      assert_allclose(mean, mean_range)
      assert_allclose(bins, bins_range)
      assert_allclose(mean, mean_range2)
      assert_allclose(bins, bins_range2)
  
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  from pytest import raises
  from scipy.stats import binned_statistic, binned_statistic_2d, binned_statistic_dd
  from scipy._lib._util import check_random_state
  from .common_tests import check_named_results
label_desc: Use image node_id 15 for calling the TestBinnedStatistic obj's underlying member method code with example usage: obj.test_1d_range_keyword() without return types