code: def geometric_mean(points):
      """Gets centroid in a series of points
  
      Parameters
      ----------
      points : list of list of float
          List of (x, y) coordinates
  
      Returns
      -------
      tuple
          The centroid of a list of points
      """
      avg_x = sum([float(p[0]) for p in points]) / len(points)
      avg_y = sum([float(p[1]) for p in points]) / len(points)
      return (avg_x, avg_y)
  
file_path: deck.gl/bindings/pydeck/pydeck/data_utils/viewport_helpers.py
imports: import math
  from ..bindings.view_state import ViewState
  from .type_checking import is_pandas_df
label_desc: Use image node_id 3 for calling a global function with example usage: geometric_mean(points) and returns: avg_x,  avg_y