code: def test_compute_view():
      actual = compute_view(POINTS, 0.95, ViewState)
      actual_pandas = compute_view(
          pd.DataFrame(POINTS), 0.95, ViewState
      )
      EXPECTED = {"latitude": 20.0, "longitude": 20.0, "zoom": 7}
      assert str(actual) == str(actual_pandas)
      assert json.loads(str(actual)) == EXPECTED
  
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 8 for calling a global function with example usage: test_compute_view() without return types