code: def compute_centroid(coordinates: np.ndarray) -> np.ndarray:
      """Compute the (x,y,z) centroid of provided coordinates
  
      Parameters
      ----------
      coordinates: np.ndarray
          A numpy array of shape `(N, 3)`, where `N` is the number of atoms.
  
      Returns
      -------
      centroid: np.ndarray
          A numpy array of shape `(3,)`, where `3` is (x,y,z).
      """
      centroid = np.mean(coordinates, axis=0)
      return centroid
  
file_path: deepchem/deepchem/utils/geometry_utils.py
imports: import numpy
  from scipy.spatial.distance import cdist
  from copy import deepcopy
label_desc: Use image node_id 7 for calling a global function with example usage: compute_centroid(coordinates) and returns: centroid