code: def test_get_n_pct():
      assert (
          sum([1 for x in get_n_pct(POINTS, 0.8) if x in POINTS]) == 4
      )
      assert sum([1 for x in get_n_pct(POINTS) if x in POINTS]) == 5
  
file_path: deck.gl/bindings/pydeck/tests/test_data_utils.py
imports: import json
  import pandas
  from pydeck.data_utils.viewport_helpers import compute_view, bbox_to_zoom_level, euclidean, is_pandas_df, geometric_mean, get_bbox, get_n_pct, k_nearest_neighbors
  from pydeck import ViewState
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_n_pct() without return types