code: def test_estimate_bandwidth_1sample(global_dtype):
      # Test estimate_bandwidth when n_samples=1 and quantile<1, so that
      # n_neighbors is set to 1.
      bandwidth = estimate_bandwidth(
          X.astype(global_dtype, copy=False), n_samples=1, quantile=0.3
      )
  
      assert bandwidth.dtype == X.dtype
      assert bandwidth == pytest.approx(0.0, abs=1e-5)
  
file_path: scikit-learn/sklearn/cluster/tests/test_mean_shift.py
imports: import warnings
  import numpy
  import pytest
  from sklearn.cluster import MeanShift, estimate_bandwidth, get_bin_seeds, mean_shift
  from sklearn.datasets import make_blobs
  from sklearn.metrics import v_measure_score
  from sklearn.utils._testing import assert_allclose, assert_array_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_estimate_bandwidth_1sample(global_dtype) without return types